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

Unified Diff: LayoutTests/fast/html/imports/sub-imports.html

Issue 17419007: [HTML Imports] Implement sub-imports processing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated to ToT. Created 7 years, 6 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/html/imports/sub-imports.html
diff --git a/LayoutTests/fast/html/imports/sub-imports.html b/LayoutTests/fast/html/imports/sub-imports.html
new file mode 100644
index 0000000000000000000000000000000000000000..fe9782d72b4413bbd70467f87bc3c729e8402a1e
--- /dev/null
+++ b/LayoutTests/fast/html/imports/sub-imports.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../js/resources/js-test-pre.js"></script>
+<link id="root" rel="import" href="resources/root.html">
+</head>
+<body>
+<script>
+shouldBe("root.import.querySelector('h1').innerHTML", "'Root'");
+
+hello = root.import.querySelector('#hello');
+shouldBe("hello.import.querySelector('h1').innerHTML", "'Hello'");
+bye = root.import.querySelector('#bye');
+shouldBe("bye.import.querySelector('h1').innerHTML", "'Bye'");
+
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
« no previous file with comments | « LayoutTests/fast/html/imports/resources/root.html ('k') | LayoutTests/fast/html/imports/sub-imports-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698