Bug 1752907: Add some helpful log messages to test r=asuth

Differential Revision: https://phabricator.services.mozilla.com/D141772
This commit is contained in:
Tom Ritter 2022-03-24 13:43:45 +00:00
Родитель 430822123f
Коммит cae037504d
1 изменённых файлов: 7 добавлений и 7 удалений

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

@ -283,38 +283,38 @@ async function testWorkerNavigator() {
is( is(
result.appVersion, result.appVersion,
expectedResults.appVersion, expectedResults.appVersion,
`Checking ${testDesc} navigator.appVersion.` `Checking ${testDesc} worker navigator.appVersion.`
); );
is( is(
result.platform, result.platform,
expectedResults.platform, expectedResults.platform,
`Checking ${testDesc} navigator.platform.` `Checking ${testDesc} worker navigator.platform.`
); );
is( is(
result.userAgent, result.userAgent,
expectedResults.userAgentNavigator, expectedResults.userAgentNavigator,
`Checking ${testDesc} navigator.userAgent.` `Checking ${testDesc} worker navigator.userAgent.`
); );
is( is(
result.hardwareConcurrency, result.hardwareConcurrency,
expectedResults.hardwareConcurrency, expectedResults.hardwareConcurrency,
`Checking ${testDesc} navigator.hardwareConcurrency.` `Checking ${testDesc} worker navigator.hardwareConcurrency.`
); );
is( is(
result.appCodeName, result.appCodeName,
CONST_APPCODENAME, CONST_APPCODENAME,
"Navigator.appCodeName reports correct constant value." "worker Navigator.appCodeName reports correct constant value."
); );
is( is(
result.appName, result.appName,
CONST_APPNAME, CONST_APPNAME,
"Navigator.appName reports correct constant value." "worker Navigator.appName reports correct constant value."
); );
is( is(
result.product, result.product,
CONST_PRODUCT, CONST_PRODUCT,
"Navigator.product reports correct constant value." "worker Navigator.product reports correct constant value."
); );
BrowserTestUtils.removeTab(tab); BrowserTestUtils.removeTab(tab);