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:
Robert Strong
2017-09-22 12:45:39 -07:00
parent 70ce022c67
commit bf95f344c1
2 changed files with 6 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ this.newAppInfo = function(options = {}) {
OS,
XPCOMABI: "noarch-spidermonkey",
invalidateCachesOnRestart() {},
shouldBlockIncompatJaws: false,
// nsIWinAppHelper
get userCanElevate() {

View File

@@ -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);
});