Bug 789315, fix the ordering of expected MutationRecords, r=jdm
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Thu, 26 Nov 2015 22:37:00 +0200
changeset 308538 d5be1774b0badd1a6def3a5c8a2e0c6c99128a6e
parent 308537 2fa7dd926187b890c08f8737de58c5b22e219da6
child 308539 ff34a06cb439e6988e91cc78f3999e8012b7f835
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdm
bugs789315
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 789315, fix the ordering of expected MutationRecords, r=jdm
testing/web-platform/tests/dom/nodes/MutationObserver-document.html
--- a/testing/web-platform/tests/dom/nodes/MutationObserver-document.html
+++ b/testing/web-platform/tests/dom/nodes/MutationObserver-document.html
@@ -44,29 +44,29 @@
                          }}]);
         });
     } else if (testCounter == 2) {
       insertionTest2.step(
         function () {
           checkRecords(document, sequence,
                        [{type: "childList",
                          addedNodes: function () {
+                           return [ document.getElementById("inserted_script") ];
+                         },
+                         target: function () {
+                          return document.getElementById("n00");
+                         }},
+                        {type: "childList",
+                         addedNodes: function () {
                            return [ document.getElementById("inserted_element") ];
                          },
                          previousSibling: function () {
                            return document.getElementById("s002");
                          },
-                         target: document.body},
-                        {type: "childList",
-                         addedNodes: function () {
-                           return [ document.getElementById("inserted_script") ];
-                         },
-                         target: function () {
-                          return document.getElementById("n00");
-                         }}
+                         target: document.body}
                         ]);
         });
     }
   }
   var document_observer;
   var newElement;
   setupTest.step(function() {
     document_observer = new MutationObserver(masterMO);