mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 11:58:55 +00:00
Bug 1819881 - Make test_focusrings.xhtml
print error detail of comparing screen shots r=edgar
Cannot reproduce the intermittent failure so that let's get the detail of the failures when new failure occurs. Differential Revision: https://phabricator.services.mozilla.com/D171669
This commit is contained in:
parent
013b593892
commit
e1ae9f0957
@ -58,9 +58,11 @@ function runTest()
|
||||
// make sure that a focus ring appears on the focused button
|
||||
if (kIsMac) {
|
||||
var focusedButton = $("b3");
|
||||
ok(compareSnapshots(snapShot(focusedButton), snapShot($("b2")), true)[0], "unfocused shows no ring");
|
||||
const retBefore = compareSnapshots(snapShot(focusedButton), snapShot($("b2")), true);
|
||||
ok(retBefore[0], `unfocused shows no ring,\nRESULT:\n${retBefore[1]}, \nREFERENCE:\n${retBefore[2]}`);
|
||||
focusedButton.focus();
|
||||
ok(compareSnapshots(snapShot(focusedButton), snapShot($("b2")), false)[0], "focus shows ring");
|
||||
const retAfter = compareSnapshots(snapShot(focusedButton), snapShot($("b2")), false);
|
||||
ok(retAfter[0], `focus shows ring,\nRESULT:\n${retAfter[1]}, \nREFERENCE:\n${retAfter[2]}`);
|
||||
}
|
||||
|
||||
checkFocus($("l1"), false, "initial appearance");
|
||||
|
Loading…
x
Reference in New Issue
Block a user