Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

/* 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"
);
}
});