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

Unified Diff: test/debugger/debug/es6/debug-promises/stepin-handler.js

Issue 2487673002: [debugger] Basic scope functionality and exception events in wrapper (Closed)
Patch Set: Formatting 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 side-by-side diff with in-line comments
Download patch
Index: test/debugger/debug/es6/debug-promises/stepin-handler.js
diff --git a/test/mjsunit/es6/debug-promises/stepin-handler.js b/test/debugger/debug/es6/debug-promises/stepin-handler.js
similarity index 82%
rename from test/mjsunit/es6/debug-promises/stepin-handler.js
rename to test/debugger/debug/es6/debug-promises/stepin-handler.js
index 8083c171036c45699435eabd48f5e2a5573b2974..c5640e7bc07db30f47a5c4d9d5afb694bdd48bdc 100644
--- a/test/mjsunit/es6/debug-promises/stepin-handler.js
+++ b/test/debugger/debug/es6/debug-promises/stepin-handler.js
@@ -8,18 +8,12 @@
Debug = debug.Debug
var exception = null;
var break_count = 0;
-var expected_breaks = -1;
+const expected_breaks = 9;
function listener(event, exec_state, event_data, data) {
try {
if (event == Debug.DebugEvent.Break) {
assertTrue(exec_state.frameCount() != 0, "FAIL: Empty stack trace");
- if (!break_count) {
- // Count number of expected breakpoints in this source file.
- var source_text = exec_state.frame(0).func().script().source();
- expected_breaks = source_text.match(/\/\/\s*Break\s+\d+\./g).length;
- print("Expected breaks: " + expected_breaks);
- }
var source = exec_state.frame(0).sourceLineText();
print("paused at: " + source);
assertTrue(source.indexOf("// Break " + break_count + ".") > 0,

Powered by Google App Engine
This is Rietveld 408576698