Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: LayoutTests/fast/dom/HTMLTemplateElement/ownerDocument-import.html

Issue 159853004: Ensure that every Document has a single, distinct template content ownerDocument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Suppress expected w3c test failures Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/dom/HTMLTemplateElement/ownerDocument-import-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698