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

Side by Side Diff: test/mjsunit/regress/regress-419663.js

Issue 2505363002: [debug-wrapper] Adapt tests, breakpoint.actual_location (Closed)
Patch Set: Rebase Created 4 years 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
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | test/mjsunit/regress/regress-crbug-259300.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Flags: --expose-debug-as debug
6
7 var o = {
8 f: function(x) {
9 var a = x + 1;
10 o = 1;
11 }
12 }
13
14 function sentinel() {}
15
16 var Debug = debug.Debug;
17
18 Debug.setListener(function() {});
19
20 var script = Debug.findScript(sentinel);
21
22 // Used in Debug.setScriptBreakPointById.
23 var p = Debug.findScriptSourcePosition(script, 9, 0);
24 var q = Debug.setBreakPointByScriptIdAndPosition(script.id, p).actual_position;
25 var r = Debug.setBreakPointByScriptIdAndPosition(script.id, q).actual_position;
26
27 assertEquals(q, r);
28
29 function assertLocation(p, l, c) {
30 var location = script.locationFromPosition(p, false);
31 assertEquals(l, location.line);
32 assertEquals(c, location.column);
33 }
34
35 assertLocation(p, 9, 0);
36 assertLocation(q, 9, 4);
37 assertLocation(r, 9, 4);
OLDNEW
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | test/mjsunit/regress/regress-crbug-259300.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698