Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../../../resources/testharness.js"></script> | |
| 5 <script src="../../../resources/testharnessreport.js"></script> | |
| 6 <script src="resources/import-custom-element-helper.js"></script> | |
| 7 <script> | |
| 8 | |
| 9 | |
| 10 var Hello = registerTestingCustomElement('x-hello'); | |
| 11 var t1 = async_test('Custom element in async imports wait preceeding sync import before upgraded.'); | |
| 12 var t2 = async_test('Custom element in async imports wait preceeding sync import before resolved.'); | |
| 13 | |
| 14 function ready() { | |
| 15 window.setTimeout(function() { | |
| 16 t1.step(function() { | |
| 17 assert_array_equals(['hello-slow', 'hello-2', 'hello-1'], Hello.ids) ; | |
| 18 t1.done(); | |
| 19 }); | |
| 20 | |
| 21 t2.step(function() { | |
| 22 var Bye = registerTestingCustomElement('x-bye'); | |
| 23 assert_array_equals(['bye-slow', 'bye-2', 'bye-1'], Bye.ids); | |
| 24 t2.done(); | |
| 25 }); | |
| 26 }, 0); | |
| 27 } | |
| 28 </script> | |
| 29 </head> | |
| 30 <body> | |
| 31 <link rel=import href="resources/import-slow-custom-element-hello.cgi"> | |
| 32 <link rel=import async href="resources/import-custom-element-hello-1.html" onloa d="ready()"> | |
|
dominicc (has gone to gerrit)
2014/04/28 01:32:32
There's another test where you use the latch with
Hajime Morrita
2014/04/29 23:11:37
No, this one was just outdated. Will update to use
| |
| 33 <x-hello id="hello-2"></x-hello> | |
| 34 <x-bye id="bye-2"></x-bye> | |
| 35 </body> | |
| 36 </html> | |
| OLD | NEW |