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

Unified Diff: LayoutTests/http/tests/htmlimports/import-dynamic-descendant-block.html

Issue 265453003: HTML Imports: Let dynamically-added imports sync. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Landing. Created 6 years, 8 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/http/tests/htmlimports/import-dynamic-descendant-block.html
diff --git a/LayoutTests/http/tests/htmlimports/import-dynamic-descendant-block.html b/LayoutTests/http/tests/htmlimports/import-dynamic-descendant-block.html
new file mode 100644
index 0000000000000000000000000000000000000000..ddb48ac8ea2576fe25a2730c03c64cdb842592d6
--- /dev/null
+++ b/LayoutTests/http/tests/htmlimports/import-dynamic-descendant-block.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+</head>
+<body>
+<link id="parentOfDynamicChild" rel="import" href="resources/having-dynamic-child.html">
+<script>
+test(function() {
+ assert_true(null != parentOfDynamicChild.import, 'Parent of dynamic child');
+ assert_true(null != parentOfDynamicChild.import.querySelector('#dynamicLink').import, 'Dynamically added child');
+}, 'Dynamically added import in a descendant blocks.');
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698