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

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

Issue 288323004: HTML Imports: Get rid of needsProcessOrStop() from dom/custom/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/core/core.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/testharness.js"></script> 4 <script src="../../../resources/testharness.js"></script>
5 <script src="../../../resources/testharnessreport.js"></script> 5 <script src="../../../resources/testharnessreport.js"></script>
6 <script src="resources/import-custom-element-helper.js"></script> 6 <script src="resources/import-custom-element-helper.js"></script>
7 <script> 7 <script>
8 8
9 9
10 var Hello = registerTestingCustomElement('x-hello'); 10 var Hello = registerTestingCustomElement('x-hello');
11 var numberOfLinks = 2; 11 var numberOfLinks = 2;
12 var t1 = async_test('Custom elements in async imports wait preceeding sync impor t before upgraded.'); 12 var t1 = async_test('Custom elements in async imports wait preceeding sync impor t before upgraded.');
13 var t2 = async_test('Custom elements in async imports wait preceeding sync impor t before resolved.'); 13 var t2 = async_test('Custom elements in async imports wait preceeding sync impor t before resolved.');
14 14
15 var latch = new ImportTestLatch(function() { 15 var latch = new ImportTestLatch(function() {
16 window.setTimeout(function() { 16 window.setTimeout(function() {
17 t1.step(function() { 17 t1.step(function() {
18 assert_array_equals(['hello-slow', 'hello-1', 'hello-2'], Hello.ids) ; 18 assert_array_equals(['hello-slow', 'hello-2', 'hello-1'], Hello.ids) ;
19 t1.done(); 19 t1.done();
20 }); 20 });
21 21
22 t2.step(function() { 22 t2.step(function() {
23 var Bye = registerTestingCustomElement('x-bye'); 23 var Bye = registerTestingCustomElement('x-bye');
24 assert_array_equals(['bye-slow', 'bye-1', 'bye-2'], Bye.ids); 24 assert_array_equals(['bye-slow', 'bye-2', 'bye-1'], Bye.ids);
25 t2.done(); 25 t2.done();
26 }); 26 });
27 }, 0); 27 }, 0);
28 }, numberOfLinks); 28 }, numberOfLinks);
29 </script> 29 </script>
30 </head> 30 </head>
31 <body> 31 <body>
32 <link rel=import href="resources/import-slow-custom-element-hello.cgi" onload="l atch.loaded()"> 32 <link rel=import href="resources/import-slow-custom-element-hello.cgi" onload="l atch.loaded()">
33 <link rel=import async href="resources/import-custom-element-hello-1.html" onloa d="latch.loaded()"> 33 <link rel=import async href="resources/import-custom-element-hello-1.html" onloa d="latch.loaded()">
34 <x-hello id="hello-2"></x-hello> 34 <x-hello id="hello-2"></x-hello>
35 <x-bye id="bye-2"></x-bye> 35 <x-bye id="bye-2"></x-bye>
36 </body> 36 </body>
37 </html> 37 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698