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

Side by Side Diff: test/debugger/debug/harmony/debug-async-break-on-stack.js

Issue 2480223002: [debugger] Migrate more debugger tests to inspector (Closed)
Patch Set: Fix status line Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --expose-debug-as debug 5 // Flags: --harmony-async-await
6 // Flags: --harmony-async-await --allow-natives-syntax
7 6
8 var Debug = debug.Debug; 7 var Debug = debug.Debug;
9 8
10 function assertEqualsAsync(expected, run, msg) { 9 function assertEqualsAsync(expected, run, msg) {
11 var actual; 10 var actual;
12 var hadValue = false; 11 var hadValue = false;
13 var hadError = false; 12 var hadError = false;
14 var promise = run(); 13 var promise = run();
15 14
16 if (typeof promise !== "object" || typeof promise.then !== "function") { 15 if (typeof promise !== "object" || typeof promise.then !== "function") {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 68 }
70 69
71 f(); 70 f();
72 71
73 %RunMicrotasks(); 72 %RunMicrotasks();
74 73
75 assertEqualsAsync(2, async () => break_count); 74 assertEqualsAsync(2, async () => break_count);
76 assertEqualsAsync(null, async () => exception); 75 assertEqualsAsync(null, async () => exception);
77 76
78 Debug.setListener(null); 77 Debug.setListener(null);
OLDNEW
« no previous file with comments | « test/debugger/debug/harmony/debug-async-break.js ('k') | test/debugger/debug/ignition/debug-break.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698