OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <script src="../../js/resources/js-test-pre.js"></script> |
| 4 <head> |
| 5 <link id="hello" rel="import" href="resources/hello.html"> |
| 6 </head> |
| 7 <body> |
| 8 <script> |
| 9 jsTestIsAsync = true; |
| 10 var hello = document.getElementById("hello"); |
| 11 shouldBeNonNull("hello.import"); |
| 12 |
| 13 debug("Node removal should make import deleted."); |
| 14 hello.parentNode.removeChild(hello); |
| 15 shouldBeNull("hello.import"); |
| 16 |
| 17 debug("Re-inserting it shouldn't help."); |
| 18 document.head.appendChild(hello); |
| 19 window.setTimeout(function() { |
| 20 shouldBeNull("hello.import"); |
| 21 finishJSTest(); |
| 22 }, 0); |
| 23 |
| 24 </script> |
| 25 <script src="../../js/resources/js-test-post.js"></script> |
| 26 </body> |
| 27 </html> |
OLD | NEW |