mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 22:28:59 +02:00
Differential Revision: https://phabricator.services.mozilla.com/D22676 --HG-- extra : moz-landing-system : lando
33 lines
1.6 KiB
JavaScript
33 lines
1.6 KiB
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
"use strict";
|
|
|
|
add_task(async function() {
|
|
await BrowserTestUtils.withNewTab({ gBrowser, url: "about:support" }, async function(browser) {
|
|
let keyLocationServiceGoogleStatus = await ContentTask.spawn(browser, null, async function() {
|
|
let textBox = content.document.getElementById("key-location-service-google-box");
|
|
await ContentTaskUtils.waitForCondition(() => content.document.l10n.getAttributes(textBox).id,
|
|
"Google location service API key status loaded");
|
|
return content.document.l10n.getAttributes(textBox).id;
|
|
});
|
|
ok(keyLocationServiceGoogleStatus, "Google location service API key status shown");
|
|
|
|
let keySafebrowsingGoogleStatus = await ContentTask.spawn(browser, null, async function() {
|
|
let textBox = content.document.getElementById("key-safebrowsing-google-box");
|
|
await ContentTaskUtils.waitForCondition(() => content.document.l10n.getAttributes(textBox).id,
|
|
"Google Safebrowsing API key status loaded");
|
|
return content.document.l10n.getAttributes(textBox).id;
|
|
});
|
|
ok(keySafebrowsingGoogleStatus, "Google Safebrowsing API key status shown");
|
|
|
|
|
|
let keyMozillaStatus = await ContentTask.spawn(browser, null, async function() {
|
|
let textBox = content.document.getElementById("key-mozilla-box");
|
|
await ContentTaskUtils.waitForCondition(() => content.document.l10n.getAttributes(textBox).id,
|
|
"Mozilla API key status loaded");
|
|
return content.document.l10n.getAttributes(textBox).id;
|
|
});
|
|
ok(keyMozillaStatus, "Mozilla API key status shown");
|
|
});
|
|
});
|