mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 21:28:04 +02:00
Differential Revision: https://phabricator.services.mozilla.com/D62839 --HG-- extra : moz-landing-system : lando
28 lines
778 B
JavaScript
28 lines
778 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
"use strict";
|
|
|
|
/*
|
|
* This can't be an xpcshell-test because, according to
|
|
* `toolkit/modules/Services.jsm`, "Not all applications implement
|
|
* nsIXULAppInfo (e.g. xpcshell doesn't)."
|
|
*/
|
|
const { ClientEnvironmentBase } = ChromeUtils.import(
|
|
"resource://gre/modules/components-utils/ClientEnvironment.jsm"
|
|
);
|
|
|
|
add_task(function testBuildId() {
|
|
ok(
|
|
ClientEnvironmentBase.appinfo !== undefined,
|
|
"appinfo should be available in the context"
|
|
);
|
|
ok(
|
|
typeof ClientEnvironmentBase.appinfo === "object",
|
|
"appinfo should be an object"
|
|
);
|
|
ok(
|
|
typeof ClientEnvironmentBase.appinfo.appBuildID === "string",
|
|
"buildId should be a string"
|
|
);
|
|
});
|