Backed out changeset 38bfa2af2bd8 (bug 1023547) for making test_promise.html perma-fail.

This commit is contained in:
Ryan VanderMeulen 2014-07-20 15:39:04 -04:00
parent ff865012d8
commit 379f8a7ad4
2 changed files with 4 additions and 7 deletions

View File

@ -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);
}

View File

@ -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();
});