4 <script src="../../../resources/testharness.js"></script>
5 <script src="../../../resources/testharnessreport.js"></script>
6 <script src="../../../http/tests/htmlimports/resources/import-custom-element-helper.js"></script>
10 var Hello = registerTestingCustomElement('x-hello');
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() {
17 assert_array_equals(['hello-cycle-p1', 'hello-cycle-1', 'hello-cycle-2', 'hello-cycle-p2'], Hello.ids);
22 var Bye = registerTestingCustomElement('x-bye');
23 assert_array_equals(['bye-cycle-p1', 'bye-cycle-1', 'bye-cycle-2', 'bye-cycle-p2'], Bye.ids);
28 <link rel="import" href="resources/custom-element-hello-cycle-parent.html" onload="latch.loaded()">