OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import "debug_lib.dart"; | 5 import "debug_lib.dart"; |
6 | 6 |
7 class MyClass { | 7 class MyClass { |
8 operator ==(other) { | 8 operator ==(other) { |
9 print(other); | 9 print(other); |
10 return true; // Breakpoint #3. | 10 return true; // Breakpoint #3. |
(...skipping 15 matching lines...) Expand all Loading... |
26 throw "unreachable"; | 26 throw "unreachable"; |
27 } | 27 } |
28 print("ok"); | 28 print("ok"); |
29 } | 29 } |
30 | 30 |
31 // Checks that debugger can stop at calls to == even if one | 31 // Checks that debugger can stop at calls to == even if one |
32 // of the operands is null. | 32 // of the operands is null. |
33 | 33 |
34 var testScript = [ | 34 var testScript = [ |
35 MatchFrames(["main"]), | 35 MatchFrames(["main"]), |
36 MatchLine(15), | 36 MatchLine(14), |
37 SetBreakpoint(18), | 37 SetBreakpoint(18), |
38 SetBreakpoint(21), | 38 SetBreakpoint(21), |
39 SetBreakpoint(10), | 39 SetBreakpoint(10), |
40 SetBreakpoint(23), | 40 SetBreakpoint(23), |
41 Resume(), | 41 Resume(), |
42 MatchFrames(["main"]), | 42 MatchFrames(["main"]), |
43 MatchLine(18), // At breakpoint #1. | 43 MatchLine(18), // At breakpoint #1. |
44 Resume(), | 44 Resume(), |
45 MatchLine(21), // At breakpoint #2; didn't hit breakpoint in MyClass.==. | 45 MatchLine(21), // At breakpoint #2; didn't hit breakpoint in MyClass.==. |
46 Resume(), | 46 Resume(), |
47 MatchFrames(["MyClass.==", "main"]), | 47 MatchFrames(["MyClass.==", "main"]), |
48 MatchLine(10), // At breakpoint #3 in MyClass.==. | 48 MatchLine(10), // At breakpoint #3 in MyClass.==. |
49 Resume(), | 49 Resume(), |
50 MatchLine(23), // At breakpoint #4. | 50 MatchLine(23), // At breakpoint #4. |
51 Resume() | 51 Resume() |
52 ]; | 52 ]; |
OLD | NEW |