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

Side by Side Diff: LayoutTests/fast/html/imports/import-custom-element-in-grandchild.html

Issue 273523006: Fix flakiness on import-custom-element-in-grandchild.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | « LayoutTests/TestExpectations ('k') | no next file » | 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="../../../http/tests/htmlimports/resources/import-custom-element-hel per.js"></script> 6 <script src="../../../http/tests/htmlimports/resources/import-custom-element-hel per.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <script> 9 <script>
10 var Hello = registerTestingCustomElement('x-hello'); 10 var Hello = registerTestingCustomElement('x-hello');
11 var numberOfLinks = 1; 11 var numberOfLinks = 3;
12 var t1 = async_test('Custom elements in an indirect import are upgraded.'); 12 var t1 = async_test('Custom elements in an indirect import are upgraded.');
13 var t2 = async_test('Custom elements in an indirect import are resolved.'); 13 var t2 = async_test('Custom elements in an indirect import are resolved.');
14 var latch = new ImportTestLatch(function() { 14 var latch = new ImportTestLatch(function() {
15 t1.step(function() { 15 t1.step(function() {
16 assert_equals('hello-1', Hello.ids[0]); 16 assert_equals('hello-1', Hello.ids[0]);
17 assert_array_equals(['hello-1', 'hello-2'], Hello.ids.slice(0).sort()); 17 assert_array_equals(['hello-1', 'hello-2'], Hello.ids.slice(0).sort());
18 t1.done(); 18 t1.done();
19 }, 0); 19 }, 0);
20 20
21 t2.step(function() { 21 t2.step(function() {
22 var Bye = registerTestingCustomElement('x-bye'); 22 var Bye = registerTestingCustomElement('x-bye');
23 assert_equals('bye-1', Bye.ids[0]); 23 assert_equals('bye-1', Bye.ids[0]);
24 assert_array_equals(['bye-1', 'bye-2'], Bye.ids.slice(0).sort()); 24 assert_array_equals(['bye-1', 'bye-2'], Bye.ids.slice(0).sort());
25 t2.done(); 25 t2.done();
26 }); 26 });
27 }, numberOfLinks); 27 }, numberOfLinks);
28 </script> 28 </script>
29 <link rel="import" href="resources/custom-element-hello-parent-12.html" onload=" latch.loaded()"> 29 <link rel="import" href="resources/custom-element-hello-parent-12.html" onload=" latch.loaded()">
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698