This is an automated email from the git hooks/post-receive script.
pierov pushed a commit to branch geckoview-99.0.1-11.0-1 in repository tor-browser.
commit 6ff8e087fdefd10694b3aa3c3eb75ed325f3e4a5 Author: Ed Lee edilee@mozilla.com AuthorDate: Wed Feb 9 20:07:02 2022 +0000
Bug 1754124 - Test fix filter out expired themes for UITour colorways r=Gijs a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D138134 --- browser/components/uitour/test/browser_UITour_colorway.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/browser/components/uitour/test/browser_UITour_colorway.js b/browser/components/uitour/test/browser_UITour_colorway.js index aaea9563e5640..1fd8039b74808 100644 --- a/browser/components/uitour/test/browser_UITour_colorway.js +++ b/browser/components/uitour/test/browser_UITour_colorway.js @@ -12,11 +12,12 @@ const { AddonManager } = ChromeUtils.import( );
// Tests assume there's at least 1 builtin theme with colorway id. -const { BuiltInThemeConfig } = ChromeUtils.import( - "resource:///modules/BuiltInThemeConfig.jsm" +const { BuiltInThemes } = ChromeUtils.import( + "resource:///modules/BuiltInThemes.jsm" ); -const COLORWAY_IDS = [...BuiltInThemeConfig.keys()].filter(id => - id.endsWith("-colorway@mozilla.org") +const COLORWAY_IDS = [...BuiltInThemes.builtInThemeMap.keys()].filter( + id => + id.endsWith("-colorway@mozilla.org") && !BuiltInThemes.themeIsExpired(id) );
add_UITour_task(async function test_getColorways() {