Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android'
- Manifest: widget/tests/browser/browser.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
add_task(function check_desktop_environment_telemetry() {
if (AppConstants.platform === "linux") {
Assert.equal(
Glean.widget.desktopEnvironment.testGetValue(),
Services.appinfo.desktopEnvironment,
"Telemetry contains the current desktop environment"
);
} else {
Assert.equal(
Glean.widget.desktopEnvironment.testGetValue(),
null,
"widget.desktopEnvironment is not set on non-Linux"
);
}
});