зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1889417 - Fix minor Fluent bugs in various tests. r=fluent-reviewers,credential-management-reviewers,fxview-reviewers,places-reviewers,omc-reviewers,backup-reviewers,urlbar-reviewers,dimi,Standard8,nsharpley,mconley,flod,emcminn
Issues revealed by adding a `MOZ_ASSERT(false)` in Fluent error reporting and trawling through the resulting logs. Differential Revision: https://phabricator.services.mozilla.com/D221421
This commit is contained in:
Родитель
f7d1fa775f
Коммит
a734b2da97
|
@ -11,9 +11,7 @@ const BASE_CONTENT = {
|
||||||
alt_text: "Test alt",
|
alt_text: "Test alt",
|
||||||
},
|
},
|
||||||
email: {
|
email: {
|
||||||
link_text: {
|
link_text: "Email yourself a link",
|
||||||
string_id: "spotlight-focus-promo-email-link",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
marketplace_buttons: ["ios", "android"],
|
marketplace_buttons: ["ios", "android"],
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
src="chrome://browser/content/backup/disable-backup-encryption.mjs"
|
src="chrome://browser/content/backup/disable-backup-encryption.mjs"
|
||||||
type="module"
|
type="module"
|
||||||
></script>
|
></script>
|
||||||
|
<link rel="localization" href="preview/backupSettings.ftl"/>
|
||||||
|
<link rel="localization" href="branding/brand.ftl"/>
|
||||||
<link rel="stylesheet" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
|
<link rel="stylesheet" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
src="chrome://browser/content/backup/enable-backup-encryption.mjs"
|
src="chrome://browser/content/backup/enable-backup-encryption.mjs"
|
||||||
type="module"
|
type="module"
|
||||||
></script>
|
></script>
|
||||||
|
<link rel="localization" href="preview/backupSettings.ftl"/>
|
||||||
|
<link rel="localization" href="branding/brand.ftl"/>
|
||||||
<link rel="stylesheet" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
|
<link rel="stylesheet" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
src="chrome://browser/content/backup/restore-from-backup.mjs"
|
src="chrome://browser/content/backup/restore-from-backup.mjs"
|
||||||
type="module"
|
type="module"
|
||||||
></script>
|
></script>
|
||||||
|
<link rel="localization" href="preview/backupSettings.ftl"/>
|
||||||
|
<link rel="localization" href="branding/brand.ftl"/>
|
||||||
<link rel="stylesheet" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
|
<link rel="stylesheet" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
src="chrome://browser/content/backup/turn-off-scheduled-backups.mjs"
|
src="chrome://browser/content/backup/turn-off-scheduled-backups.mjs"
|
||||||
type="module"
|
type="module"
|
||||||
></script>
|
></script>
|
||||||
|
<link rel="localization" href="preview/backupSettings.ftl"/>
|
||||||
|
<link rel="localization" href="branding/brand.ftl"/>
|
||||||
<link rel="stylesheet" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
|
<link rel="stylesheet" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
<script src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
<script src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||||
<link rel="stylesheet" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
|
<link rel="stylesheet" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
|
||||||
<link rel="stylesheet" href="chrome://global/skin/in-content/common.css">
|
<link rel="stylesheet" href="chrome://global/skin/in-content/common.css">
|
||||||
|
<link rel="localization" href="browser/preferences/preferences.ftl"/>
|
||||||
<link rel="localization" href="browser/firefoxView.ftl"/>
|
<link rel="localization" href="browser/firefoxView.ftl"/>
|
||||||
<script type="module" src="chrome://browser/content/firefoxview/card-container.mjs"></script>
|
<script type="module" src="chrome://browser/content/firefoxview/card-container.mjs"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
<title>FxviewTabList Tests</title>
|
<title>FxviewTabList Tests</title>
|
||||||
<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
||||||
<script src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
<script src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||||
|
<link rel="localization" href="browser/firefoxView.ftl">
|
||||||
|
<link rel="localization" href="browser/fxviewTabList.ftl">
|
||||||
<link rel="localization" href="browser/places.ftl">
|
<link rel="localization" href="browser/places.ftl">
|
||||||
<link rel="stylesheet" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
|
<link rel="stylesheet" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
|
||||||
<link rel="stylesheet" href="chrome://global/skin/in-content/common.css">
|
<link rel="stylesheet" href="chrome://global/skin/in-content/common.css">
|
||||||
|
|
|
@ -377,13 +377,13 @@ class TestProvider extends UrlbarTestUtils.TestProvider {
|
||||||
{
|
{
|
||||||
name: DISMISS_ONE_COMMAND,
|
name: DISMISS_ONE_COMMAND,
|
||||||
l10n: {
|
l10n: {
|
||||||
id: "firefox-suggest-weather-command-not-interested",
|
id: "firefox-suggest-command-not-interested",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: DISMISS_ALL_COMMAND,
|
name: DISMISS_ALL_COMMAND,
|
||||||
l10n: {
|
l10n: {
|
||||||
id: "firefox-suggest-weather-command-not-interested",
|
id: "firefox-suggest-command-not-interested",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -440,7 +440,7 @@ add_task(async function test_countryAndStateFieldLabels() {
|
||||||
for (let countryOption of doc.querySelector("#country").options) {
|
for (let countryOption of doc.querySelector("#country").options) {
|
||||||
// Clear L10N textContent to not leave leftovers between country tests
|
// Clear L10N textContent to not leave leftovers between country tests
|
||||||
for (const labelEl of doc.querySelectorAll(".label-text")) {
|
for (const labelEl of doc.querySelectorAll(".label-text")) {
|
||||||
doc.l10n.setAttributes(labelEl, "");
|
delete labelEl.dataset["l10n-id"];
|
||||||
labelEl.textContent = "";
|
labelEl.textContent = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,12 @@
|
||||||
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
|
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
|
||||||
|
|
||||||
<window onload="start()"
|
<window onload="start()"
|
||||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||||
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
|
<linkset>
|
||||||
|
<html:link rel="localization" href="browser/places.ftl"/>
|
||||||
|
</linkset>
|
||||||
<script src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"/>
|
<script src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"/>
|
||||||
|
|
||||||
<hbox id="sidebar-search-container" align="center">
|
<hbox id="sidebar-search-container" align="center">
|
||||||
|
|
|
@ -315,11 +315,11 @@ skip-if = [
|
||||||
"os != 'android'",
|
"os != 'android'",
|
||||||
]
|
]
|
||||||
|
|
||||||
["test_bug1913022.js"]
|
|
||||||
|
|
||||||
["test_bug1889130.js"]
|
["test_bug1889130.js"]
|
||||||
skip-if = ["os == 'win'"] # skip because 0.0.0.0 is invalid in windows platform
|
skip-if = ["os == 'win'"] # skip because 0.0.0.0 is invalid in windows platform
|
||||||
|
|
||||||
|
["test_bug1913022.js"]
|
||||||
|
|
||||||
["test_cache-control_request.js"]
|
["test_cache-control_request.js"]
|
||||||
|
|
||||||
["test_cache-entry-id.js"]
|
["test_cache-entry-id.js"]
|
||||||
|
@ -619,6 +619,7 @@ run-sequentially = "node server exceptions dont replay well"
|
||||||
["test_hpke_config_manager.js"]
|
["test_hpke_config_manager.js"]
|
||||||
|
|
||||||
["test_hpke_out_of_process.js"]
|
["test_hpke_out_of_process.js"]
|
||||||
|
firefox-appdir = "browser"
|
||||||
skip-if = ["os == 'android'"] # Bug 1904406
|
skip-if = ["os == 'android'"] # Bug 1904406
|
||||||
|
|
||||||
["test_http1-proxy.js"]
|
["test_http1-proxy.js"]
|
||||||
|
|
|
@ -54,6 +54,7 @@ support-files = [
|
||||||
["test_multiple_frames.js"]
|
["test_multiple_frames.js"]
|
||||||
|
|
||||||
["test_page-icon_protocol.js"]
|
["test_page-icon_protocol.js"]
|
||||||
|
firefox-appdir = "browser"
|
||||||
prefs = ["dom.security.https_first=false"]
|
prefs = ["dom.security.https_first=false"]
|
||||||
|
|
||||||
["test_query_result_favicon_changed_on_child.js"]
|
["test_query_result_favicon_changed_on_child.js"]
|
||||||
|
|
|
@ -7,6 +7,10 @@
|
||||||
<window title="Textbox Add and Undo Add to Dictionary Test" width="500" height="600"
|
<window title="Textbox Add and Undo Add to Dictionary Test" width="500" height="600"
|
||||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
|
<linkset>
|
||||||
|
<html:link rel="localization" href="toolkit/global/textActions.ftl"/>
|
||||||
|
</linkset>
|
||||||
|
|
||||||
<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
||||||
<script src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
<script src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче