| Index: LayoutTests/fast/html/imports/import-readd.html
|
| diff --git a/LayoutTests/fast/html/imports/import-readd.html b/LayoutTests/fast/html/imports/import-readd.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7686c67481fdd953f1ffd602f7cba4e6adef10a9
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/html/imports/import-readd.html
|
| @@ -0,0 +1,24 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script src="../../../resources/testharness.js"></script>
|
| +<script src="../../../resources/testharnessreport.js"></script>
|
| +<link rel=import href="./resources/style-red.html">
|
| +</head>
|
| +<body>
|
| +<h1 class="target">Should be red</h1>
|
| +<script>
|
| +var t = async_test('Styles are re-applied after removed imports are re-added');
|
| +window.onload = function() {
|
| + t.step(function() {
|
| + var importLink = document.querySelector('link');
|
| + document.head.removeChild(importLink);
|
| + document.head.appendChild(importLink);
|
| + assert_equals(window.getComputedStyle(document.querySelector('.target')).color, 'rgb(255, 0, 0)');
|
| + Array.prototype.forEach.call(document.querySelectorAll("h1"), function(e) { e.style.display = "none"; });
|
| + t.done();
|
| + });
|
| +}
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|