Bug 1349879 - Intl object is hidden on Android beta and release channel. r=snorp,Waldo

Some interface tests into mochitest is failure on android beta and release.

test_serviceworker_interfaces.js has nonReleaseAndroid flag, so we should use it into test_interfaces.js and test_worker_interfaces.js

MozReview-Commit-ID: A1aHrTXwGil

--HG--
extra : rebase_source : 0990ec8a50b664ac711ee4977a104286f40ae07e
This commit is contained in:
Makoto Kato 2017-03-30 19:44:28 +09:00
Родитель 9708f9f50d
Коммит 1c93a16bad
3 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -44,7 +44,7 @@ var ecmaGlobals =
"Int32Array",
"Int8Array",
"InternalError",
"Intl",
{name: "Intl", nonReleaseAndroid: true, android: false},
"Iterator",
"JSON",
"Map",
@ -1316,12 +1316,13 @@ function createInterfaceMap(isXBLScope) {
ok(!("pref" in entry), "Bogus pref annotation for " + entry.name);
if ((entry.nightly === !isNightly) ||
(entry.nightlyAndroid === !(isAndroid && isNightly) && isAndroid) ||
(entry.nonReleaseAndroid === !(isAndroid && !isRelease) && isAndroid) ||
(entry.xbl === !isXBLScope) ||
(entry.desktop === !isDesktop) ||
(entry.windows === !isWindows) ||
(entry.mac === !isMac) ||
(entry.linux === !isLinux) ||
(entry.android === !isAndroid && !entry.nightlyAndroid) ||
(entry.android === !isAndroid && !entry.nonReleaseAndroid && !entry.nightlyAndroid) ||
(entry.release === !isRelease) ||
(entry.isSecureContext === !isSecureContext) ||
entry.disabled) {

Просмотреть файл

@ -39,7 +39,7 @@ var ecmaGlobals =
"Int32Array",
"Int8Array",
"InternalError",
"Intl",
{name: "Intl", nonReleaseAndroid: true, android: false},
"Iterator",
"JSON",
"Map",

Просмотреть файл

@ -39,7 +39,7 @@ var ecmaGlobals =
"Int32Array",
"Int8Array",
"InternalError",
"Intl",
{name: "Intl", nonReleaseAndroid: true, android: false},
"Iterator",
"JSON",
"Map",
@ -262,8 +262,9 @@ function createInterfaceMap(version, userAgent) {
ok(!("pref" in entry), "Bogus pref annotation for " + entry.name);
if ((entry.nightly === !isNightly) ||
(entry.nightlyAndroid === !(isAndroid && isNightly) && isAndroid) ||
(entry.nonReleaseAndroid === !(isAndroid && !isRelease) && isAndroid) ||
(entry.desktop === !isDesktop) ||
(entry.android === !isAndroid && !entry.nightlyAndroid) ||
(entry.android === !isAndroid && !entry.nonReleaseAndroid && !entry.nightlyAndroid) ||
(entry.release === !isRelease) ||
(entry.isSecureContext === !isSecureContext) ||
entry.disabled) {