let condition = {
skip_if: () =>
AppConstants.platform !== "win" ||
!Services.sysinfo.getProperty("hasWinPackageId"),
};
add_task(condition, async function testInstallationTelemetryMSIX() { // Unfortunately, we have no way to inject different installation ping data // into the system in a way that doesn't just completely override the code // under test - so other than a basic test of the happy path, there's // nothing we can do here.
let msixExtra = {
version: AppConstants.MOZ_APP_VERSION,
build_id: AppConstants.MOZ_BULIDID,
admin_user: "false",
from_msi: "false",
silent: "false",
default_path: "true",
install_existed: "false",
other_inst: "false",
other_msix_inst: "false",
profdir_existed: "false",
};
// Test with normal full data
let fullData = {
version: "99.0abc",
build_id: "123",
installer_type: "full",
admin_user: false,
install_existed: true,
profdir_existed: true,
silent: false,
from_msi: false,
default_path: true,
// Check that it doesn't generate another event when the timestamp is unchanged
await runReport(dataFile, "full", { expectTS: "1" });
// New timestamp and a check to make sure we can find installed MSIX packages // by overriding the prefixes a bit further down.
fullData.install_timestamp = "2"; // This check only works on Windows if (AppConstants.platform == "win") {
fullExtra.other_msix_inst = "true";
}
await writeJsonUtf16(dataFilePath, fullData);
await runReport(dataFile, "full", {
expectExtra: fullExtra,
expectTS: "2",
msixPrefixes: ["Microsoft"],
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.