Index: LayoutTests/fast/dom/HTMLTemplateElement/ownerDocument-import.html |
diff --git a/LayoutTests/fast/dom/HTMLTemplateElement/ownerDocument-import.html b/LayoutTests/fast/dom/HTMLTemplateElement/ownerDocument-import.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fa0d277b4b39a12c86cf1a5865cd8ac9563d2dfd |
--- /dev/null |
+++ b/LayoutTests/fast/dom/HTMLTemplateElement/ownerDocument-import.html |
@@ -0,0 +1,19 @@ |
+<!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> |