Index: LayoutTests/fast/js/Promise-resolve-with-then-fulfill.html |
diff --git a/LayoutTests/fast/js/Promise-resolve-with-then-fulfill.html b/LayoutTests/fast/js/Promise-resolve-with-then-fulfill.html |
index 8e4a002b4daf8ca02d1bb62f5047bb5969cb8d67..35a027e3711739ffb5b785c7b26b272286f3c029 100644 |
--- a/LayoutTests/fast/js/Promise-resolve-with-then-fulfill.html |
+++ b/LayoutTests/fast/js/Promise-resolve-with-then-fulfill.html |
@@ -10,16 +10,14 @@ |
description('Test Promise.'); |
window.jsTestIsAsync = true; |
-var callback; |
var value = { |
then: function(fulfillCallback, rejectCallback) { |
testPassed('value.then is called.'); |
window.thisValue = this; |
shouldBe('thisValue', 'value'); |
- callback = fulfillCallback; |
+ fulfillCallback('hello'); |
} |
}; |
-finishJSTest(); |
var promise = new Promise(function(resolve) { resolve(value); }); |
promise.then(function(result) { |
@@ -34,7 +32,6 @@ promise.then(function(result) { |
debug('The promise is not fulfilled now.'); |
-callback('hello'); |
</script> |
<script src="resources/js-test-post.js"></script> |
</body> |