| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../js/resources/js-test-pre.js"></script> |
| 3 <script> | 3 <script> |
| 4 window.jsTestIsAsync = true; | 4 window.jsTestIsAsync = true; |
| 5 | 5 |
| 6 description('Test that MutationObservers are delivered to in order of creation.'
); | 6 description('Test that MutationObservers are delivered to in order of creation.'
); |
| 7 function finish() { | 7 function finish() { |
| 8 shouldBe('order.length', '10'); | 8 shouldBe('order.length', '10'); |
| 9 shouldBe('order[0]', '0'); | 9 shouldBe('order[0]', '0'); |
| 10 shouldBe('order[1]', '1'); | 10 shouldBe('order[1]', '1'); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 observers[9].observe(div, {attributes: true}); | 41 observers[9].observe(div, {attributes: true}); |
| 42 observers[0].observe(div, {childList: true}); | 42 observers[0].observe(div, {childList: true}); |
| 43 observers[5].observe(div, {attributes: true}); | 43 observers[5].observe(div, {attributes: true}); |
| 44 observers[6].observe(div, {characterData: true, subtree: true}); | 44 observers[6].observe(div, {characterData: true, subtree: true}); |
| 45 observers[8].observe(div, {attributes: true}); | 45 observers[8].observe(div, {attributes: true}); |
| 46 div.setAttribute('foo', 'bar'); | 46 div.setAttribute('foo', 'bar'); |
| 47 div.appendChild(document.createTextNode('hello')); | 47 div.appendChild(document.createTextNode('hello')); |
| 48 div.firstChild.textContent = 'goodbye'; | 48 div.firstChild.textContent = 'goodbye'; |
| 49 setTimeout(finish, 0); | 49 setTimeout(finish, 0); |
| 50 </script> | 50 </script> |
| 51 <script src="../../js/resources/js-test-post.js"></script> | |
| OLD | NEW |