| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <body> | 2 <body> |
| 3 <input type="range"> | 3 <input type="range"> |
| 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('Test that MutationObservers operate in Shadow DOM'); | 6 description('Test that MutationObservers operate in Shadow DOM'); |
| 7 | 7 |
| 8 function doTest() | 8 function doTest() |
| 9 { | 9 { |
| 10 function mutate(elt) | 10 function mutate(elt) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 mutate(shadowRoot.firstChild); | 35 mutate(shadowRoot.firstChild); |
| 36 debug('\nObserving from outside shadow DOM should not see mutations in the s
hadow:'); | 36 debug('\nObserving from outside shadow DOM should not see mutations in the s
hadow:'); |
| 37 shouldBe('mutations.length', '0'); | 37 shouldBe('mutations.length', '0'); |
| 38 } | 38 } |
| 39 | 39 |
| 40 if (window.internals) | 40 if (window.internals) |
| 41 doTest(); | 41 doTest(); |
| 42 else | 42 else |
| 43 testFailed('This test only runs in DRT'); | 43 testFailed('This test only runs in DRT'); |
| 44 </script> | 44 </script> |
| 45 <script src="../../js/resources/js-test-post.js"></script> | |
| 46 </body> | 45 </body> |
| OLD | NEW |