Bug 1378161 - update browser_bookmark_popup to correctly deal with the non-photon case, r?mak draft
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Tue, 04 Jul 2017 21:57:49 +0100
changeset 603823 ead4b88db2765cca886b51f67ab14b7213f139e5
parent 603822 5529f95210b51073860db5430f4997f8b748dc7a
child 636021 d2c47a9ac4f9722e85b9b2d78a7b778c45d37a3a
push id66883
push usergijskruitbosch@gmail.com
push dateTue, 04 Jul 2017 20:58:28 +0000
reviewersmak
bugs1378161
milestone56.0a1
Bug 1378161 - update browser_bookmark_popup to correctly deal with the non-photon case, r?mak MozReview-Commit-ID: 6I2OBaYSdRb
browser/base/content/test/general/browser_bookmark_popup.js
--- a/browser/base/content/test/general/browser_bookmark_popup.js
+++ b/browser/base/content/test/general/browser_bookmark_popup.js
@@ -4,17 +4,17 @@
 
 "use strict";
 
 /**
  * Test opening and closing the bookmarks panel.
  */
 
 let bookmarkPanel = document.getElementById("editBookmarkPanel");
-let bookmarkStar = BookmarkingUI.star;
+let bookmarkStar = AppConstants.MOZ_PHOTON_THEME ? BookmarkingUI.star : BookmarkingUI.button;
 let bookmarkPanelTitle = document.getElementById("editBookmarkPanelTitle");
 let editBookmarkPanelRemoveButtonRect;
 
 StarUI._closePanelQuickForTesting = true;
 
 async function test_bookmarks_popup({isNewBookmark, popupShowFn, popupEditFn,
                                 shouldAutoClose, popupHideFn, isBookmarkRemoved}) {
   await BrowserTestUtils.withNewTab({gBrowser, url: "about:home"}, async function(browser) {