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