Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: LayoutTests/http/tests/htmlimports/import-custom-element-order.html

Issue 249563003: REGRESSION(r171966): Custom elements in async imports don't get upgrade. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698