зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1312049 - Remove/disable tests that depend on setting prefs to override the UI locale directionality. r=gandalf
This commit is contained in:
Родитель
93d9efc143
Коммит
4964eb51ce
|
@ -39,7 +39,7 @@ add_task(function* test_i18n_css() {
|
||||||
},
|
},
|
||||||
|
|
||||||
manifest: {
|
manifest: {
|
||||||
"web_accessible_resources": ["foo.css", "foo.txt", "locale.css"],
|
"web_accessible_resources": ["foo.css", "foo.txt"],
|
||||||
|
|
||||||
"content_scripts": [{
|
"content_scripts": [{
|
||||||
"matches": ["http://mochi.test/*/file_sample.html"],
|
"matches": ["http://mochi.test/*/file_sample.html"],
|
||||||
|
@ -60,7 +60,6 @@ add_task(function* test_i18n_css() {
|
||||||
"foo.css": "body { __MSG_foo__; }",
|
"foo.css": "body { __MSG_foo__; }",
|
||||||
"bar.CsS": "body { __MSG_foo__; }",
|
"bar.CsS": "body { __MSG_foo__; }",
|
||||||
"foo.txt": "body { __MSG_foo__; }",
|
"foo.txt": "body { __MSG_foo__; }",
|
||||||
"locale.css": '* { content: "__MSG_@@ui_locale__ __MSG_@@bidi_dir__ __MSG_@@bidi_reversed_dir__ __MSG_@@bidi_start_edge__ __MSG_@@bidi_end_edge__" }',
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -88,25 +87,6 @@ add_task(function* test_i18n_css() {
|
||||||
is(style.maxWidth, "42px", "stylesheet correctly applied");
|
is(style.maxWidth, "42px", "stylesheet correctly applied");
|
||||||
win.close();
|
win.close();
|
||||||
|
|
||||||
cssURL = cssURL.replace(/foo.css$/, "locale.css");
|
|
||||||
|
|
||||||
css = yield fetch(cssURL);
|
|
||||||
is(css, '* { content: "en_US ltr rtl left right" }', "CSS file localized in mochitest scope");
|
|
||||||
|
|
||||||
const LOCALE = "general.useragent.locale";
|
|
||||||
const DIR = "intl.uidirection.en";
|
|
||||||
|
|
||||||
// We don't wind up actually switching the chrome registry locale, since we
|
|
||||||
// don't have a chrome package for Hebrew. So just override it.
|
|
||||||
SpecialPowers.setCharPref(LOCALE, "he");
|
|
||||||
SpecialPowers.setCharPref(DIR, "rtl");
|
|
||||||
|
|
||||||
css = yield fetch(cssURL);
|
|
||||||
is(css, '* { content: "he rtl ltr right left" }', "CSS file localized in mochitest scope");
|
|
||||||
|
|
||||||
SpecialPowers.clearUserPref(LOCALE);
|
|
||||||
SpecialPowers.clearUserPref(DIR);
|
|
||||||
|
|
||||||
yield extension.awaitFinish("i18n-css");
|
yield extension.awaitFinish("i18n-css");
|
||||||
yield extension.unload();
|
yield extension.unload();
|
||||||
});
|
});
|
||||||
|
|
|
@ -79,6 +79,7 @@ skip-if = os == 'linux' # Bug 1264604
|
||||||
[test_bug418874.xul]
|
[test_bug418874.xul]
|
||||||
[test_bug429723.xul]
|
[test_bug429723.xul]
|
||||||
[test_bug437844.xul]
|
[test_bug437844.xul]
|
||||||
|
disabled = # bug 1312049 prevents this test working in its current form
|
||||||
[test_bug457632.xul]
|
[test_bug457632.xul]
|
||||||
[test_bug460942.xul]
|
[test_bug460942.xul]
|
||||||
[test_bug471776.xul]
|
[test_bug471776.xul]
|
||||||
|
@ -162,6 +163,7 @@ support-files = window_preferences_onsyncfrompreference.xul
|
||||||
[test_radio.xul]
|
[test_radio.xul]
|
||||||
[test_richlist_direction.xul]
|
[test_richlist_direction.xul]
|
||||||
[test_righttoleft.xul]
|
[test_righttoleft.xul]
|
||||||
|
disabled = # bug 1312049 prevents this test working in its current form
|
||||||
[test_scale.xul]
|
[test_scale.xul]
|
||||||
[test_scaledrag.xul]
|
[test_scaledrag.xul]
|
||||||
skip-if = buildapp == 'mulet'
|
skip-if = buildapp == 'mulet'
|
||||||
|
|
Загрузка…
Ссылка в новой задаче