Index: LayoutTests/http/tests/htmlimports/import-dynamic-block-sync.html |
diff --git a/LayoutTests/http/tests/htmlimports/import-dynamic-block-sync.html b/LayoutTests/http/tests/htmlimports/import-dynamic-block-sync.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..72b9cc921faa682cb266c7396b8aa063280d1982 |
--- /dev/null |
+++ b/LayoutTests/http/tests/htmlimports/import-dynamic-block-sync.html |
@@ -0,0 +1,25 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
+</head> |
+<body> |
+<script> |
+(function() { |
+ var link = document.createElement('link'); |
+ link.id = 'dynamicLink' |
+ link.rel = 'import'; |
+ link.href = 'resources/import-slow-child.cgi'; |
+ document.head.appendChild(link); |
+})(); |
+</script> |
+<link id="followingLink" rel="import" href="resources/hello.html"> |
+<script> |
+test(function() { |
+ assert_true(null != dynamicLink.import, 'Dynamic import'); |
+ assert_true(null != followingLink.import, 'Following import'); |
+}, 'Dynamically added import blocks following import.'); |
+</script> |
+</body> |
+</html> |