Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <script src="../../../resources/js-test.js"></script> | 3 <script src="../../../resources/js-test.js"></script> |
| 4 <head> | 4 <head> |
| 5 <link id="staticImportLink" rel="import" href="resources/hello.html"> | 5 <link id="staticImportLink" rel="import" href="resources/hello.html"> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <script> | 8 <script> |
| 9 description("This tests 'element removed flag' behavior defined in https://dvcs. w3.org/hg/webcomponents/raw-file/tip/spec/imports/index.html#dfn-element-removed -flag."); | 9 description("This tests 'element removed flag' behavior defined in https://dvcs. w3.org/hg/webcomponents/raw-file/tip/spec/imports/index.html#dfn-element-removed -flag."); |
| 10 window.jsTestIsAsync = true; | 10 window.jsTestIsAsync = true; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 return; | 62 return; |
| 63 } | 63 } |
| 64 | 64 |
| 65 shouldBeNull("dynamicImportEager.import"); | 65 shouldBeNull("dynamicImportEager.import"); |
| 66 document.head.appendChild(dynamicImportEager); | 66 document.head.appendChild(dynamicImportEager); |
| 67 shouldBeNonNull("dynamicImportEager.import"); | 67 shouldBeNonNull("dynamicImportEager.import"); |
| 68 | 68 |
| 69 window.requestAnimationFrame(function() { finishJSTest(); }, 0); | 69 window.requestAnimationFrame(function() { finishJSTest(); }, 0); |
| 70 } | 70 } |
| 71 | 71 |
| 72 window.setTimeout(check, 0); | 72 setTimeout(check, 0); |
|
esprehn
2014/05/08 19:13:29
What's this setTimeout waiting for?
Hajime Morrita
2014/05/08 19:42:40
This is a busy loop. I did this because the load e
| |
| 73 } | 73 } |
| 74 | 74 |
| 75 testStaticImport(); | 75 testStaticImport(); |
| 76 testDynamicImport(); | 76 testDynamicImport(); |
| 77 | 77 |
| 78 </script> | 78 </script> |
| 79 </body> | 79 </body> |
| 80 </html> | 80 </html> |
| OLD | NEW |