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
Родитель d4c12b589b
Коммит 5e2db259a2
2 изменённых файлов: 6 добавлений и 0 удалений

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

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