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 378784 4ee1eca7adbd
parent 378783 ecaf010fd427
child 378785 c0d3dbb49f68
push id50361
push usermbanner@mozilla.com
push dateMon, 04 Sep 2017 12:35:21 +0000
treeherderautoland@4ee1eca7adbd [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]);