| Index: LayoutTests/fast/html/imports/rel-style-to-import.html
|
| diff --git a/LayoutTests/fast/html/imports/rel-style-to-import.html b/LayoutTests/fast/html/imports/rel-style-to-import.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..da8a7278b04495d76e5ade2ef12e0d537e1f7f49
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/html/imports/rel-style-to-import.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="stylesheet" href="resources/hello.css">
|
| +</head>
|
| +<body>
|
| +<script>
|
| +waitAndTest([
|
| + {
|
| + description: "Updating attribute value shouldn't result import loading.",
|
| + setup: function()
|
| + {
|
| + debug("Before update:");
|
| + shouldBeNonNull("target.sheet");
|
| + shouldBeNull("target.import");
|
| + target.setAttribute("href", "resources/hello.html");
|
| + target.setAttribute("rel", "import");
|
| + window.placeholder = createPlaceholder();
|
| + },
|
| + ready: function() { return window.placeholder.import; },
|
| + test: function()
|
| + {
|
| + debug("After update:");
|
| + shouldBeNonNull("target.sheet");
|
| + shouldBeNull("target.import");
|
| + }
|
| + }
|
| +]);
|
| +</script>
|
| +<script src="../../js/resources/js-test-post.js"></script>
|
| +</body>
|
| +</html>
|
|
|