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 378769 4ee1eca7adbd
parent 378768 ecaf010fd427
child 378770 c0d3dbb49f68
push id32442
push userarchaeopteryx@coole-files.de
push dateTue, 05 Sep 2017 09:39:11 +0000
treeherdermozilla-central@35bd47b6e5ac [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]);