OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
5 <script> | 5 <script> |
6 description("This test ensures that the lifecycle callback of a parser-made elem
ent is visible in following script block.") | 6 description("This test ensures that the lifecycle callback of a parser-made elem
ent is visible in following script block.") |
7 | 7 |
8 window.callbacksCalled = []; | 8 window.callbacksCalled = []; |
9 | 9 |
10 function trackingReadyCallback() | 10 function trackingReadyCallback() |
(...skipping 12 matching lines...) Expand all Loading... |
23 // Testing element siblings | 23 // Testing element siblings |
24 window.callbacksCalled = []; | 24 window.callbacksCalled = []; |
25 container.innerHTML = "<x-foo id='a'></x-foo><div id='b' is='x-bar'></div><x-baz
id='c'></x-baz>"; | 25 container.innerHTML = "<x-foo id='a'></x-foo><div id='b' is='x-bar'></div><x-baz
id='c'></x-baz>"; |
26 shouldBe("window.callbacksCalled", "['a', 'b', 'c']"); | 26 shouldBe("window.callbacksCalled", "['a', 'b', 'c']"); |
27 | 27 |
28 // Testing nested elements | 28 // Testing nested elements |
29 window.callbacksCalled = []; | 29 window.callbacksCalled = []; |
30 container.innerHTML = "<x-foo id='a'><div id='b' is='x-bar'><x-baz id='c'></x-ba
z></div></x-foo>"; | 30 container.innerHTML = "<x-foo id='a'><div id='b' is='x-bar'><x-baz id='c'></x-ba
z></div></x-foo>"; |
31 shouldBe("window.callbacksCalled", "['c', 'b', 'a']"); | 31 shouldBe("window.callbacksCalled", "['c', 'b', 'a']"); |
32 </script> | 32 </script> |
33 <script src="../../js/resources/js-test-post.js"></script> | |
34 </body> | 33 </body> |
35 </html> | 34 </html> |
OLD | NEW |