From 51efea7e4d355519a85648d28b6a97bae3744b81 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 6 Jun 2017 15:48:36 -0500 Subject: [PATCH] Bug 1368920. Part 3 - Use correct constants to identify Nightly and non-Release/Beta in CUI tests. r=Gijs Post Project Dawn, for DevEdition, AppConstants.RELEASE_OR_BETA and AppConstants.MOZ_DEV_EDITION are true. MozReview-Commit-ID: 7aQ4gOsIurT --HG-- extra : rebase_source : cbfe652dffe8622c487a378268a7e8b1be501a9c --- browser/components/customizableui/test/head.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/components/customizableui/test/head.js b/browser/components/customizableui/test/head.js index 49100647a9ac..7939eec1b3c4 100644 --- a/browser/components/customizableui/test/head.js +++ b/browser/components/customizableui/test/head.js @@ -119,11 +119,11 @@ function isInDevEdition() { } function isInNightly() { - return AppConstants.NIGHTLY_BUILD && !AppConstants.MOZ_DEV_EDITION; + return AppConstants.NIGHTLY_BUILD; } function isNotReleaseOrBeta() { - return !AppConstants.RELEASE_OR_BETA; + return (isInDevEdition() || isInNightly()); } function removeNonReleaseButtons(areaPanelPlacements) { -- 2.11.4.GIT