| Index: LayoutTests/http/tests/htmlimports/import-dynamic-block-dynamic.html
|
| diff --git a/LayoutTests/http/tests/htmlimports/import-dynamic-block-dynamic.html b/LayoutTests/http/tests/htmlimports/import-dynamic-block-dynamic.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..86db2b8b5aef09d64c4a7b63d3367269447cd4d5
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/htmlimports/import-dynamic-block-dynamic.html
|
| @@ -0,0 +1,32 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script src="../../../resources/testharness.js"></script>
|
| +<script src="../../../resources/testharnessreport.js"></script>
|
| +</head>
|
| +<body>
|
| +<script>
|
| +(function() {
|
| + var t = async_test('Dynamically added import blocks dynamic added imports.');
|
| +
|
| + function createLink(url, onload) {
|
| + var link = document.createElement('link');
|
| + link.rel = 'import';
|
| + link.href = url;
|
| + link.onload = onload;
|
| + document.head.appendChild(link);
|
| + return link;
|
| + }
|
| +
|
| + var dynamicLink = createLink('resources/import-slow-child.cgi');
|
| + var followingLink = createLink('resources/import-slow-child.cgi', function() {
|
| + t.step(function() {
|
| + assert_true(null != dynamicLink.import, 'Dynamic import');
|
| + assert_true(null != followingLink.import, 'Following import');
|
| + t.done();
|
| + });
|
| + });
|
| +})();
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|