OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <script src="../../js/resources/js-test-pre.js"></script> |
| 4 <script src="resources/import-helpers.js"></script> |
| 5 <head> |
| 6 <link id="target", rel="import" href="resources/hello.html"> |
| 7 </head> |
| 8 <body> |
| 9 <script> |
| 10 waitAndTest([ |
| 11 { |
| 12 description: "Updating attribute value shouldn't invalidate loaded impor
t.", |
| 13 setup: function() |
| 14 { |
| 15 debug("Before update:"); |
| 16 shouldBeNull("target.sheet"); |
| 17 shouldBeNonNull("target.import"); |
| 18 target.setAttribute("href", "resources/hello.css"); |
| 19 target.setAttribute("rel", "stylesheet"); |
| 20 window.placeholder = createPlaceholder(); |
| 21 }, |
| 22 ready: function() { return window.placeholder.import; }, |
| 23 test: function() |
| 24 { |
| 25 debug("After update:"); |
| 26 shouldBeNull("target.sheet"); |
| 27 shouldBeNonNull("target.import"); |
| 28 } |
| 29 } |
| 30 ]); |
| 31 </script> |
| 32 <script src="../../js/resources/js-test-post.js"></script> |
| 33 </body> |
| 34 </html> |
OLD | NEW |