mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1312049 - Remove/disable tests that depend on setting prefs to override the UI locale directionality. r=gandalf
This commit is contained in:
parent
93d9efc143
commit
4964eb51ce
@ -39,7 +39,7 @@ add_task(function* test_i18n_css() {
|
||||
},
|
||||
|
||||
manifest: {
|
||||
"web_accessible_resources": ["foo.css", "foo.txt", "locale.css"],
|
||||
"web_accessible_resources": ["foo.css", "foo.txt"],
|
||||
|
||||
"content_scripts": [{
|
||||
"matches": ["http://mochi.test/*/file_sample.html"],
|
||||
@ -60,7 +60,6 @@ add_task(function* test_i18n_css() {
|
||||
"foo.css": "body { __MSG_foo__; }",
|
||||
"bar.CsS": "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");
|
||||
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.unload();
|
||||
});
|
||||
|
@ -79,6 +79,7 @@ skip-if = os == 'linux' # Bug 1264604
|
||||
[test_bug418874.xul]
|
||||
[test_bug429723.xul]
|
||||
[test_bug437844.xul]
|
||||
disabled = # bug 1312049 prevents this test working in its current form
|
||||
[test_bug457632.xul]
|
||||
[test_bug460942.xul]
|
||||
[test_bug471776.xul]
|
||||
@ -162,6 +163,7 @@ support-files = window_preferences_onsyncfrompreference.xul
|
||||
[test_radio.xul]
|
||||
[test_richlist_direction.xul]
|
||||
[test_righttoleft.xul]
|
||||
disabled = # bug 1312049 prevents this test working in its current form
|
||||
[test_scale.xul]
|
||||
[test_scaledrag.xul]
|
||||
skip-if = buildapp == 'mulet'
|
||||
|
Loading…
Reference in New Issue
Block a user