| <!DOCTYPE html> |
| <head> |
| <link rel=import href="resources/template-import.html"> |
| </head> |
| <body onload="runTest()"> |
| <script src="../../../resources/js-test.js"></script> |
| <script> |
| jsTestIsAsync = true; |
| description('HTMLTemplateElement content ownerDocument in HTML imports should differ from import document'); |
| |
| function runTest() { |
| var link = document.querySelector('link[rel=import]'); |
| var importDocument = link.import; |
| window.template = importDocument.querySelector('template'); |
| shouldNotBe("template.ownerDocument", "template.content.ownerDocument"); |
| finishJSTest(); |
| } |
| </script> |
| </body> |