зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1402376 - test code - Add whether the client has an incompatible version of JAWS to the update url. r=jimm
This commit is contained in:
Родитель
d4c12b589b
Коммит
5e2db259a2
|
@ -58,6 +58,7 @@ this.newAppInfo = function(options = {}) {
|
|||
OS,
|
||||
XPCOMABI: "noarch-spidermonkey",
|
||||
invalidateCachesOnRestart() {},
|
||||
shouldBlockIncompatJaws: false,
|
||||
|
||||
// nsIWinAppHelper
|
||||
get userCanElevate() {
|
||||
|
|
|
@ -346,6 +346,11 @@ add_task(async function test_custom() {
|
|||
add_task(async function test_systemCapabilities() {
|
||||
let url = URL_PREFIX + "%SYSTEM_CAPABILITIES%/";
|
||||
let systemCapabilities = "ISET:" + getInstructionSet() + ",MEM:" + getMemoryMB();
|
||||
if (AppConstants.platform == "win") {
|
||||
// The default value for shouldBlockIncompatJaws in the mock
|
||||
// Services.appinfo is false so the value should be JAWS:0
|
||||
systemCapabilities += ",JAWS:0";
|
||||
}
|
||||
Assert.equal(await getResult(url), systemCapabilities,
|
||||
"the url param for %SYSTEM_CAPABILITIES%" + MSG_SHOULD_EQUAL);
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче