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

Unified Diff: test/mjsunit/es6/debug-promises-new-event.js

Issue 416213004: Merge three PromiseEvent's into one. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix formatting Created 6 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
« no previous file with comments | « test/mjsunit/es6/debug-promise-events.js ('k') | tools/generate-runtime-tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/debug-promises-new-event.js
diff --git a/test/mjsunit/es6/debug-promises-new-event.js b/test/mjsunit/es6/debug-promises-new-event.js
deleted file mode 100644
index b08077c5b884d7939ac8044b65b3b72c1d388b13..0000000000000000000000000000000000000000
--- a/test/mjsunit/es6/debug-promises-new-event.js
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2014 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Flags: --expose-debug-as debug
-
-Debug = debug.Debug;
-
-var exception = null;
-var new_promise;
-
-function listener(event, exec_state, event_data, data) {
- if (!(event_data instanceof debug.NewPromiseEvent)) return;
- try {
- assertTrue(event_data.resolver().isFunction());
- assertEquals(resolver, event_data.resolver().value());
- assertTrue(event_data.resolver().resolved());
- assertEquals("resolver", event_data.resolver().name());
- assertTrue(event_data.resolver().source().indexOf("Token") > 0);
-
- assertTrue(event_data.promise().isPromise());
- new_promise = event_data.promise().value();
- assertEquals("pending", event_data.promise().status());
- } catch (e) {
- print(e + e.stack)
- exception = e;
- }
-}
-
-Debug.setListener(listener);
-
-function resolver(resolve, reject) {
- resolve(); // Token
-}
-
-var p = new Promise(resolver);
-assertEquals(new_promise, p);
-
-assertNull(exception);
-Debug.setListener(null);
« no previous file with comments | « test/mjsunit/es6/debug-promise-events.js ('k') | tools/generate-runtime-tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698