mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 38bfa2af2bd8 (bug 1023547) for making test_promise.html perma-fail.
This commit is contained in:
parent
ff865012d8
commit
379f8a7ad4
@ -636,14 +636,11 @@ function promiseResolveThenableCleanStack() {
|
||||
// check what happens after all "next cycle" steps
|
||||
// have had a chance to complete
|
||||
setTimeout(function(){
|
||||
results.push(x);
|
||||
// Result should be [0, 2] since `thenable` will be called async.
|
||||
is(results[0], 0, "Expected thenable to be called asynchronously");
|
||||
// See Bug 1023547 comment 13 for why this check has to be gated on p.
|
||||
p.then(function() {
|
||||
results.push(x);
|
||||
is(results[1], 2, "Expected thenable to be called asynchronously");
|
||||
runTest();
|
||||
});
|
||||
is(results[1], 2, "Expected thenable to be called asynchronously");
|
||||
runTest();
|
||||
},1000);
|
||||
}
|
||||
|
||||
|
@ -672,11 +672,11 @@ function promiseResolveThenableCleanStack() {
|
||||
// check what happens after all "next cycle" steps
|
||||
// have had a chance to complete
|
||||
setTimeout(function(){
|
||||
results.push(x);
|
||||
// Result should be [0, 2] since `thenable` will be called async.
|
||||
is(results[0], 0, "Expected thenable to be called asynchronously");
|
||||
// See Bug 1023547 comment 13 for why this check has to be gated on p.
|
||||
p.then(function() {
|
||||
results.push(x);
|
||||
is(results[1], 2, "Expected thenable to be called asynchronously");
|
||||
runTest();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user