2 <script src=
"../../../resources/js-test.js"></script>
4 window
.jsTestIsAsync
= true;
6 description('Test that mutations during delivery do not interrupt delivery order.');
8 shouldBe('order.length', '3');
9 shouldBe('order[0]', '1');
10 shouldBe('order[1]', '3');
11 shouldBe('order[2]', '2');
16 var div
= document
.createElement('div');
18 var observer1
= new MutationObserver(function(mutations
) {
20 div
.appendChild(document
.createElement('span'));
22 var observer2
= new MutationObserver(function(mutations
) {
25 var observer3
= new MutationObserver(function(mutations
) {
29 observer1
.observe(div
, {attributes
: true});
30 observer2
.observe(div
, {childList
: true});
31 observer3
.observe(div
, {attributes
: true});
32 div
.setAttribute('foo', 'bar');
33 setTimeout(finish
, 0);