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

Unified Diff: test/debugger/debug/debug-negative-break-points.js

Issue 2512963002: [debug-wrapper] Migrate more tests (Closed)
Patch Set: Rebase 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
« no previous file with comments | « test/debugger/debug/debug-multiple-breakpoints.js ('k') | test/debugger/debug/debug-receiver.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/debugger/debug/debug-negative-break-points.js
diff --git a/test/mjsunit/debug-negative-break-points.js b/test/debugger/debug/debug-negative-break-points.js
similarity index 77%
rename from test/mjsunit/debug-negative-break-points.js
rename to test/debugger/debug/debug-negative-break-points.js
index 1eb8943a074f31d4103bde9c279b4711622c31dc..51ce21bab884bea7c17661ce89596ed151d36ed8 100644
--- a/test/mjsunit/debug-negative-break-points.js
+++ b/test/debugger/debug/debug-negative-break-points.js
@@ -2,7 +2,6 @@
// 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
var Debug = debug.Debug;
var break_count = 0;
@@ -63,37 +62,37 @@ assertCount(3, 1);
f(1);
assertCount(4, 1);
-Debug.setBreakPoint(f, 1, 0, "x > 0");
+assertThrows(() => Debug.setBreakPoint(f, 1, 0, "x > 0"));
f(1);
-assertCount(5, 1);
+assertCount(5, 2);
f(0);
-assertCount(5, 1);
+assertCount(5, 2);
Debug.setBreakPoint(g, 2, 0, "1 == 2");
g(1);
-assertCount(5, 1);
+assertCount(5, 2);
-Debug.setBreakPoint(g, 2, 0, "x == 1");
+assertThrows(() => Debug.setBreakPoint(g, 2, 0, "x == 1"));
g(1);
-assertCount(6, 2);
+assertCount(5, 3);
g(2);
-assertCount(6, 2);
+assertCount(5, 3);
g(1);
-assertCount(7, 3);
+assertCount(5, 3);
-Debug.setBreakPoint(g, 2, 0, "x > 0");
+assertThrows(() => Debug.setBreakPoint(g, 2, 0, "x > 0"));
g(1);
-assertCount(8, 4);
+assertCount(5, 4);
g(0);
-assertCount(8, 4);
+assertCount(5, 4);
h(0);
-assertCount(8, 5);
+assertCount(5, 5);
Debug.setBreakPoint(h, 3, 0, "x > 0");
h(1);
-assertCount(9, 6);
+assertCount(6, 6);
h(0);
-assertCount(9, 6);
+assertCount(6, 6);
Debug.clearBreakOnException();
Debug.setListener(null);
« no previous file with comments | « test/debugger/debug/debug-multiple-breakpoints.js ('k') | test/debugger/debug/debug-receiver.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698