OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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=--compile-all --error_on_bad_type --error_on_bad_override --steal-b
reakpoints | 4 // VMOptions=--compile_all --error_on_bad_type --error_on_bad_override --steal-b
reakpoints |
5 | 5 |
6 import 'package:observatory/service_io.dart'; | 6 import 'package:observatory/service_io.dart'; |
7 import 'package:unittest/unittest.dart'; | 7 import 'package:unittest/unittest.dart'; |
8 import 'test_helper.dart'; | 8 import 'test_helper.dart'; |
9 import 'dart:async'; | 9 import 'dart:async'; |
10 | 10 |
11 int counter = 0; | 11 int counter = 0; |
12 | 12 |
13 void periodicTask(_) { | 13 void periodicTask(_) { |
14 counter++; // Line 14. We set our breakpoint here. | 14 counter++; // Line 14. We set our breakpoint here. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 completer.complete(); | 71 completer.complete(); |
72 } | 72 } |
73 }); | 73 }); |
74 isolate.resume(); | 74 isolate.resume(); |
75 await completer.future; | 75 await completer.future; |
76 }, | 76 }, |
77 | 77 |
78 ]; | 78 ]; |
79 | 79 |
80 main(args) => runIsolateTests(args, tests, testeeBefore: startTimer); | 80 main(args) => runIsolateTests(args, tests, testeeBefore: startTimer); |
OLD | NEW |