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

Unified Diff: test/debugger/debug/regress/regress-419663.js

Issue 2505363002: [debug-wrapper] Adapt tests, breakpoint.actual_location (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
Index: test/debugger/debug/regress/regress-419663.js
diff --git a/test/mjsunit/regress/regress-419663.js b/test/debugger/debug/regress/regress-419663.js
similarity index 71%
rename from test/mjsunit/regress/regress-419663.js
rename to test/debugger/debug/regress/regress-419663.js
index 6f51741cf86cd1f614eb169767258574b6cea796..51bd85aa2e6b1b0bc3fca8759bcd2fbdabf4e816 100644
--- a/test/mjsunit/regress/regress-419663.js
+++ b/test/debugger/debug/regress/regress-419663.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 o = {
f: function(x) {
@@ -20,11 +19,8 @@ Debug.setListener(function() {});
var script = Debug.findScript(sentinel);
// Used in Debug.setScriptBreakPointById.
-var p = Debug.findScriptSourcePosition(script, 9, 0);
+var p = Debug.findScriptSourcePosition(script, 8, 0);
var q = Debug.setBreakPointByScriptIdAndPosition(script.id, p).actual_position;
-var r = Debug.setBreakPointByScriptIdAndPosition(script.id, q).actual_position;
-
-assertEquals(q, r);
function assertLocation(p, l, c) {
var location = script.locationFromPosition(p, false);
@@ -32,6 +28,5 @@ function assertLocation(p, l, c) {
assertEquals(c, location.column);
}
-assertLocation(p, 9, 0);
-assertLocation(q, 9, 4);
-assertLocation(r, 9, 4);
+assertLocation(p, 8, 0);
+assertLocation(q, 8, 4);
« no previous file with comments | « test/debugger/debug/es6/debug-stepin-microtasks.js ('k') | test/debugger/debug/regress/regress-crbug-424142.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698