зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1550289 - changing pocket url r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D30557 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ad81a9d9d9
Коммит
ca683a78bb
|
@ -13,7 +13,7 @@ ChromeUtils.defineModuleGetter(this, "BrowserUtils",
|
|||
|
||||
var Pocket = {
|
||||
get site() { return Services.prefs.getCharPref("extensions.pocket.site"); },
|
||||
get listURL() { return "https://" + Pocket.site + "/?src=ff_ext"; },
|
||||
get listURL() { return "https://" + Pocket.site + "/firefox_learnmore?src=ff_library"; },
|
||||
|
||||
openList(event) {
|
||||
let win = event.view;
|
||||
|
|
|
@ -26,12 +26,12 @@ add_task(async function() {
|
|||
|
||||
info("clicking on pocket library button");
|
||||
let pocketPagePromise = BrowserTestUtils.waitForNewTab(gBrowser,
|
||||
"https://example.com/browser/browser/components/pocket/test/pocket_actions_test.html/?src=ff_ext");
|
||||
"https://example.com/browser/browser/components/pocket/test/pocket_actions_test.html/firefox_learnmore?src=ff_library");
|
||||
pocketLibraryButton.click();
|
||||
await pocketPagePromise;
|
||||
|
||||
is(gBrowser.currentURI.spec,
|
||||
"https://example.com/browser/browser/components/pocket/test/pocket_actions_test.html/?src=ff_ext",
|
||||
"https://example.com/browser/browser/components/pocket/test/pocket_actions_test.html/firefox_learnmore?src=ff_library",
|
||||
"pocket button in library menu button opens correct page");
|
||||
|
||||
BrowserTestUtils.removeTab(tab);
|
||||
|
|
Загрузка…
Ссылка в новой задаче