Bug 1371781 - Fix eslint issues in test. r=me
☠☠ backed out by 412c52914a1b ☠ ☠
authorEitan Isaacson <eitan@monotonous.org>
Mon, 31 Jul 2017 16:36:08 -0700
changeset 420861 0d3bdb80960db712c8b7643927c504d5ec484b26
parent 420860 a9f00bf0aeff80ca03f30a20b0f235adb1cbd4c4
child 420862 cc58fc61250ca10983923c0a31a75b47f05bce6c
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1371781
milestone56.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 1371781 - Fix eslint issues in test. r=me
accessible/tests/browser/tree/browser_test_aria_owns_select.js
--- a/accessible/tests/browser/tree/browser_test_aria_owns_select.js
+++ b/accessible/tests/browser/tree/browser_test_aria_owns_select.js
@@ -13,25 +13,27 @@ function testChildrenIds(acc, expectedId
 async function runTests(browser, accDoc) {
   let div = findAccessibleChildByID(accDoc, "div");
   let select = findAccessibleChildByID(accDoc, "select");
 
   testChildrenIds(div, ["b"]);
   testChildrenIds(select.firstChild, ["a"]);
 
   let onReorders = waitForEvents([
-      [EVENT_REORDER, "div"],
-      [EVENT_REORDER,
-        evt => getAccessibleDOMNodeID(evt.accessible.parent) == "select"]
+    [EVENT_REORDER, "div"],
+    [EVENT_REORDER,
+      evt => getAccessibleDOMNodeID(evt.accessible.parent) == "select"]
   ]);
 
   await ContentTask.spawn(browser, null, async function() {
     document.getElementById("div").removeAttribute("aria-owns");
   });
 
+  await onReorders;
+
   testChildrenIds(div, []);
   testChildrenIds(select.firstChild, ["a", "b"]);
 }
 
 /**
  * Test caching of accessible object states
  */
 addAccessibleTask(`