mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 1804904: update about dialog tests with proper expectations for MSIX builds r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D164672
This commit is contained in:
parent
63bbd7c869
commit
aba8a5afb4
@ -24,12 +24,20 @@ add_task(async function verify_distribution_info_hides() {
|
||||
);
|
||||
|
||||
let distroIdField = aboutDialog.document.getElementById("distributionId");
|
||||
|
||||
is(distroIdField.value, "");
|
||||
isnot(distroIdField.style.display, "block");
|
||||
|
||||
let distroField = aboutDialog.document.getElementById("distribution");
|
||||
isnot(distroField.style.display, "block");
|
||||
|
||||
if (
|
||||
AppConstants.platform === "win" &&
|
||||
Services.sysinfo.getProperty("hasWinPackageId")
|
||||
) {
|
||||
is(distroIdField.value, "mozilla-test-distribution-id - 1.0");
|
||||
is(distroIdField.style.display, "block");
|
||||
is(distroField.style.display, "block");
|
||||
} else {
|
||||
is(distroIdField.value, "");
|
||||
isnot(distroIdField.style.display, "block");
|
||||
isnot(distroField.style.display, "block");
|
||||
}
|
||||
|
||||
aboutDialog.close();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user