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 <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'); |
11 shouldBe('order[2]', '2'); | 11 shouldBe('order[2]', '2'); |
12 shouldBe('order[3]', '3'); | 12 shouldBe('order[3]', '3'); |
(...skipping 28 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> |
OLD | NEW |