SimpleTest.requestFlakyTimeout("Test has a loop in an onload handler that runs for 5000ms, we need to make sure the loop is done before moving to the next test.");
returnnewPromise(resolve=>{
setTimeout(resolve,5000);
});
},
});
}
constdontBlockBFCacheTests=[
{
name:"getUserMedia",
@@ -158,7 +182,7 @@ function promisePageShowNotFromBFCache(e) {
}
functionrunTests(testArray,shouldBlockBFCache){
for (const{name,prefs={},test}oftestArray){
for (const{name,prefs={},test,waitForDone}oftestArray){