Bug 1194555 - Part 6: Run reporters asynchronously. r=njn,jld,ted
This commit is contained in:
@@ -552,7 +552,14 @@ End of 5th\n\
|
||||
SimpleTest.waitForClipboard(
|
||||
function(aActual) {
|
||||
mostRecentActual = aActual;
|
||||
return aActual.trim() === aExpected.trim();
|
||||
let rslt = aActual.trim() === aExpected.trim();
|
||||
if (!rslt) {
|
||||
// Try copying again.
|
||||
synthesizeKey("A", {accelKey: true});
|
||||
synthesizeKey("C", {accelKey: true});
|
||||
}
|
||||
|
||||
return rslt;
|
||||
},
|
||||
function() {
|
||||
synthesizeKey("A", {accelKey: true});
|
||||
|
||||
@@ -106,7 +106,14 @@
|
||||
SimpleTest.waitForClipboard(
|
||||
function(aActual) {
|
||||
mostRecentActual = aActual;
|
||||
return aActual.trim() === aExpected.trim();
|
||||
let rslt = aActual.trim() === aExpected.trim();
|
||||
if (!rslt) {
|
||||
// Try copying again.
|
||||
synthesizeKey("A", {accelKey: true});
|
||||
synthesizeKey("C", {accelKey: true});
|
||||
}
|
||||
|
||||
return rslt;
|
||||
},
|
||||
function() {
|
||||
synthesizeKey("A", {accelKey: true});
|
||||
|
||||
Reference in New Issue
Block a user