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

Side by Side Diff: LayoutTests/fast/html/imports/import-custom-element-cycle.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, 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
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="../../../http/tests/htmlimports/resources/import-custom-element-hel per.js"></script>
7 </head>
8 <body>
9 <script>
10 var Hello = registerTestingCustomElement('x-hello');
11
12 var numberOfLinks = 1;
13 var t1 = async_test('Elements are upgraded ignoring the cycle.');
14 var t2 = async_test('Elements are resolved ignoring the cycle.');
15 var latch = new ImportTestLatch(function() {
16 t1.step(function() {
17 assert_array_equals(['hello-cycle-p1', 'hello-cycle-1', 'hello-cycle-2', 'hello-cycle-p2'], Hello.ids);
18 t1.done();
19 });
20
21 t2.step(function() {
22 var Bye = registerTestingCustomElement('x-bye');
23 assert_array_equals(['bye-cycle-p1', 'bye-cycle-1', 'bye-cycle-2', 'bye- cycle-p2'], Bye.ids);
24 t2.done();
25 });
26 }, numberOfLinks);
27 </script>
28 <link rel="import" href="resources/custom-element-hello-cycle-parent.html" onloa d="latch.loaded()">
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698