| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 // VMOptions=--error_on_bad_type --error_on_bad_override --verbose_debug | 4 // VMOptions=--error_on_bad_type --error_on_bad_override --verbose_debug |
| 5 | 5 |
| 6 import 'service_test_common.dart'; | 6 import 'service_test_common.dart'; |
| 7 import 'test_helper.dart'; | 7 import 'test_helper.dart'; |
| 8 import 'dart:developer'; | 8 import 'dart:developer'; |
| 9 | 9 |
| 10 const int LINE_A = 17; | 10 const int LINE_A = 17; |
| 11 const int LINE_B = 18; | 11 const int LINE_B = 18; |
| 12 | 12 |
| 13 var libVariable; | 13 var libVariable; |
| 14 | 14 |
| 15 testMain() { | 15 testMain() { |
| 16 debugger(); | 16 debugger(); |
| 17 print("Before"); // LINE_A | 17 print("Before"); // LINE_A |
| 18 libVariable = 0; // LINE_B | 18 libVariable = 0; // LINE_B |
| 19 print("and after"); | 19 print("and after"); |
| 20 } | 20 } |
| 21 | 21 |
| 22 var tests = [ | 22 var tests = [ |
| 23 hasStoppedAtBreakpoint, | 23 hasStoppedAtBreakpoint, |
| 24 stoppedAtLine(LINE_A), | 24 stoppedAtLine(LINE_A), |
| 25 stepOver, | 25 stepOver, |
| 26 // Check that debugger stops at assignment to top-level variable. | 26 // Check that debugger stops at assignment to top-level variable. |
| 27 stoppedAtLine(LINE_B), | 27 stoppedAtLine(LINE_B), |
| 28 resumeIsolate, | 28 resumeIsolate, |
| 29 ]; | 29 ]; |
| 30 | 30 |
| 31 main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain); | 31 main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain); |
| OLD | NEW |