summaryrefslogtreecommitdiffstats
path: root/dom/html/test/forms/test_input_password_click_show_password_button.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dom/html/test/forms/test_input_password_click_show_password_button.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/dom/html/test/forms/test_input_password_click_show_password_button.html b/dom/html/test/forms/test_input_password_click_show_password_button.html
index 76f4e066f5..5a6b24e82c 100644
--- a/dom/html/test/forms/test_input_password_click_show_password_button.html
+++ b/dom/html/test/forms/test_input_password_click_show_password_button.html
@@ -37,16 +37,16 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=502258
element.type = "text";
await new Promise(resolve => requestAnimationFrame(resolve));
var typeTextSnapshot = await snapshotWindow(window);
- results = compareSnapshots(baseSnapshot, typeTextSnapshot, true);
- ok(results[0], aId + ": type=text should render the same as type=password that is showing the password");
+ info(aId + ": type=text should render the same as type=password that is showing the password");
+ assertSnapshots(baseSnapshot, typeTextSnapshot, true, null, aId + ": base", aId + ": type=text");
// Re-setting value shouldn't change anything.
// eslint-disable-next-line no-self-assign
element.value = element.value;
var tmpSnapshot = await snapshotWindow(window);
- results = compareSnapshots(baseSnapshot, tmpSnapshot, true);
- ok(results[0], aId + ": re-setting the value should change nothing");
+ info(aId + ": re-setting the value should change nothing");
+ assertSnapshots(baseSnapshot, tmpSnapshot, true, null, aId + ": base", aId + ": tmp");
}
async function reset_show_password(aId, concealedSnapshot) {
@@ -54,8 +54,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=502258
element.type = "password";
await new Promise(resolve => requestAnimationFrame(resolve));
var typePasswordSnapshot = await snapshotWindow(window);
- results = compareSnapshots(concealedSnapshot, typePasswordSnapshot, true);
- ok(results[0], aId + ": changing the type attribute should conceal the password again");
+ info(aId + ": changing the type attribute should conceal the password again");
+ assertSnapshots(concealedSnapshot, typePasswordSnapshot, true, null, aId + ": concealed", aId + ": type=password");
}
async function runTest() {