Bug 1395784 - Skip browser_controller_onDrop.js when async places transactions are turned off. r=mak
authorMark Banner <standard8@mozilla.com>
Mon, 04 Sep 2017 11:23:07 +0100
changeset 428253 4ee1eca7adbdce195f7e660b227ddcdec38c9c56
parent 428252 ecaf010fd42721e4b57db89790cee341bb3ebb84
child 428254 c0d3dbb49f682e47560c3af72c3c140e39f33f1a
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs1395784
milestone57.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 1395784 - Skip browser_controller_onDrop.js when async places transactions are turned off. r=mak MozReview-Commit-ID: FFJLRIvOfZX
browser/components/places/tests/browser/browser_controller_onDrop.js
--- a/browser/components/places/tests/browser/browser_controller_onDrop.js
+++ b/browser/components/places/tests/browser/browser_controller_onDrop.js
@@ -41,16 +41,21 @@ add_task(async function setup() {
     bookmarks[0].guid,
     bookmarks[1].guid,
     bookmarks[2].guid,
   ]);
 });
 
 async function run_drag_test(startBookmarkIndex, insertionIndex,
                              realInsertionIndex, expectTransactionCreated = true) {
+  if (!PlacesUIUtils.useAsyncTransactions) {
+    Assert.ok(true, "Skipping test as async transactions are turned off");
+    return;
+  }
+
   // Reset the stubs so that previous test runs don't count against us.
   PlacesUIUtils.getTransactionForData.reset();
   PlacesTransactions.batch.reset();
 
   let dragBookmark = bookmarks[startBookmarkIndex];
 
   await withSidebarTree("bookmarks", async (tree) => {
     tree.selectItems([PlacesUtils.unfiledBookmarksFolderId]);