[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser] 68/311: Bug 1754124 - Test fix filter out expired themes for UITour colorways r=Gijs a=RyanVM
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@xxxxxxxxxxx>
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@xxxxxxxxxxx")
+const COLORWAY_IDS = [...BuiltInThemes.builtInThemeMap.keys()].filter(
+ id =>
+ id.endsWith("-colorway@xxxxxxxxxxx") && !BuiltInThemes.themeIsExpired(id)
);
add_UITour_task(async function test_getColorways() {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits