| 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="../../js/resources/js-test-pre.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 WebKitMutationObserver(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> |
| 15 | 15 |
| 16 <p> | 16 <p> |
| 17 Mutation records should be delivered for all parser mutations after the abov
e script. | 17 Mutation records should be delivered for all parser mutations after the abov
e script. |
| 18 </p> | 18 </p> |
| 19 | 19 |
| 20 <!-- Test parserRemoveChild and takeAllChildrenFrom doing the adoption agency al
gorithm. --> | 20 <!-- Test parserRemoveChild and takeAllChildrenFrom doing the adoption agency al
gorithm. --> |
| (...skipping 14 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 |