OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
3 <body> | 3 <body> |
4 <div id="container-a"><span is="x-a" id="x"></span></div> | 4 <div id="container-a"><span is="x-a" id="x"></span></div> |
5 <div id="container-b"><span is="x-a" id="y"></span></div> | 5 <div id="container-b"><span is="x-a" id="y"></span></div> |
6 <script> | 6 <script> |
7 description('Tests that accessing custom elements from an isolated world ' + | 7 description('Tests that accessing custom elements from an isolated world ' + |
8 'does not cause worlds to collide and destroy the galaxy.'); | 8 'does not cause worlds to collide and destroy the galaxy.'); |
9 | 9 |
10 shouldBeNonNull('window.testRunner', 'this test requires testRunner'); | 10 shouldBeNonNull('window.testRunner', 'this test requires testRunner'); |
11 | 11 |
12 var containerA = document.querySelector('#container-a'); | 12 var containerA = document.querySelector('#container-a'); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 ' y prototype is HTMLSpanElement.prototype? true,' + | 95 ' y prototype is HTMLSpanElement.prototype? true,' + |
96 ' y.p ~> undefined,' + | 96 ' y.p ~> undefined,' + |
97 ' y.q ~> undefined"', | 97 ' y.q ~> undefined"', |
98 'the isolated world should not see main world prototypes'); | 98 'the isolated world should not see main world prototypes'); |
99 | 99 |
100 // Lastly, collect some wrappers (e.g #b in isolated world) | 100 // Lastly, collect some wrappers (e.g #b in isolated world) |
101 document.querySelector('#container-b').innerHTML = ''; | 101 document.querySelector('#container-b').innerHTML = ''; |
102 gc(); | 102 gc(); |
103 testPassed('did not crash'); | 103 testPassed('did not crash'); |
104 </script> | 104 </script> |
OLD | NEW |