Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: LayoutTests/fast/js/Promise-already-rejected.html

Issue 18878002: Refactoring on DOM/Promises (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/js/Promise-already-rejected.html
diff --git a/LayoutTests/fast/js/Promise-already-fulfilled.html b/LayoutTests/fast/js/Promise-already-rejected.html
similarity index 69%
copy from LayoutTests/fast/js/Promise-already-fulfilled.html
copy to LayoutTests/fast/js/Promise-already-rejected.html
index 560803e23a7b73b3a5938822521f65adbb29000a..8127a1a34a793c3731f8f9ec1ab33055d2626220 100644
--- a/LayoutTests/fast/js/Promise-already-fulfilled.html
+++ b/LayoutTests/fast/js/Promise-already-rejected.html
@@ -12,15 +12,17 @@ description('Test Promise.');
window.jsTestIsAsync = true;
new Promise(function(resolver) {
- resolver.fulfill('foo');
- resolver.fulfill('bar');
-}).then(function(result) {
+ resolver.reject('foo');
+ resolver.fulfill('fulfill');
+ resolver.resolve('resolve');
+ resolver.reject('reject');
+}).then(function() {
+ testFailed('fulfilled');
+ finishJSTest();
+}, function(result) {
window.result = result;
shouldBeEqualToString('result', 'foo');
finishJSTest();
-}, function() {
- testFailed('rejected');
- finishJSTest();
});
</script>

Powered by Google App Engine
This is Rietveld 408576698