| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <body> | 3 <body> |
| 4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 | 5 |
| 6 <script> | 6 <script> |
| 7 if (window.testRunner) | 7 if (window.testRunner) |
| 8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
| 9 | 9 |
| 10 var observer = new MutationObserver(function(mutations, observer) { | 10 var observer = new MutationObserver(function(mutations, observer) { |
| 11 window.mutations = mutations; | 11 window.mutations = mutations; |
| 12 }); | 12 }); |
| 13 observer.observe(document.body, {childList: true, subtree:true}); | 13 observer.observe(document.body, {childList: true, subtree:true}); |
| 14 </script> | 14 </script> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 35 shouldBeEqualToString('mutations[9].target.tagName', 'A'); | 35 shouldBeEqualToString('mutations[9].target.tagName', 'A'); |
| 36 shouldBeEqualToString('mutations[9].removedNodes[0].tagName', 'FIGURE'); | 36 shouldBeEqualToString('mutations[9].removedNodes[0].tagName', 'FIGURE'); |
| 37 shouldBe('mutations[9].removedNodes.length', '1'); | 37 shouldBe('mutations[9].removedNodes.length', '1'); |
| 38 shouldBe('mutations[9].addedNodes.length', '0'); | 38 shouldBe('mutations[9].addedNodes.length', '0'); |
| 39 shouldBeEqualToString('mutations[18].target.tagName', 'FIGURE'); | 39 shouldBeEqualToString('mutations[18].target.tagName', 'FIGURE'); |
| 40 shouldBe('mutations[18].addedNodes.length', '1'); | 40 shouldBe('mutations[18].addedNodes.length', '1'); |
| 41 shouldBe('mutations[18].removedNodes.length', '0'); | 41 shouldBe('mutations[18].removedNodes.length', '0'); |
| 42 shouldBeEqualToString('mutations[18].addedNodes[0].tagName', 'DIV'); | 42 shouldBeEqualToString('mutations[18].addedNodes[0].tagName', 'DIV'); |
| 43 </script> | 43 </script> |
| 44 </body> | 44 </body> |
| OLD | NEW |