| Index: LayoutTests/fast/html/imports/rel-import-to-style.html
|
| diff --git a/LayoutTests/fast/html/imports/rel-import-to-style.html b/LayoutTests/fast/html/imports/rel-import-to-style.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..557518869d142c9f9fa36dc4a181ed3d7c9be524
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/html/imports/rel-import-to-style.html
|
| @@ -0,0 +1,34 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<script src="../../js/resources/js-test-pre.js"></script>
|
| +<script src="resources/import-helpers.js"></script>
|
| +<head>
|
| +<link id="target", rel="import" href="resources/hello.html">
|
| +</head>
|
| +<body>
|
| +<script>
|
| +waitAndTest([
|
| + {
|
| + description: "Updating attribute value shouldn't invalidate loaded import.",
|
| + setup: function()
|
| + {
|
| + debug("Before update:");
|
| + shouldBeNull("target.sheet");
|
| + shouldBeNonNull("target.import");
|
| + target.setAttribute("href", "resources/hello.css");
|
| + target.setAttribute("rel", "stylesheet");
|
| + window.placeholder = createPlaceholder();
|
| + },
|
| + ready: function() { return window.placeholder.import; },
|
| + test: function()
|
| + {
|
| + debug("After update:");
|
| + shouldBeNull("target.sheet");
|
| + shouldBeNonNull("target.import");
|
| + }
|
| + }
|
| +]);
|
| +</script>
|
| +<script src="../../js/resources/js-test-post.js"></script>
|
| +</body>
|
| +</html>
|
|
|