Chromium Code Reviews| 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=--error_on_bad_type --error_on_bad_override | 4 // VMOptions=--error_on_bad_type --error_on_bad_override |
| 5 | 5 |
| 6 import 'package:observatory/service_io.dart'; | 6 import 'package:observatory/service_io.dart'; |
| 7 import 'package:observatory/debugger.dart'; | 7 import 'package:observatory/debugger.dart'; |
| 8 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
| 9 import 'test_helper.dart'; | 9 import 'test_helper.dart'; |
| 10 import 'dart:async'; | 10 import 'dart:async'; |
| 11 import 'dart:developer'; | 11 import 'dart:developer'; |
| 12 | 12 |
| 13 void testFunction() { | 13 void testFunction() { |
| 14 int i = 0; | 14 int i = 0; |
| 15 while (true) { | 15 while (i == 0) { |
|
Cutch
2015/08/12 22:12:33
fixes an analyzer warning
| |
| 16 debugger(); | 16 debugger(); |
| 17 print('loop'); | 17 print('loop'); |
| 18 print('loop'); | 18 print('loop'); |
| 19 } | 19 } |
| 20 } | 20 } |
| 21 | 21 |
| 22 class TestDebugger extends Debugger { | 22 class TestDebugger extends Debugger { |
| 23 TestDebugger(this.isolate, this.stack); | 23 TestDebugger(this.isolate, this.stack); |
| 24 | 24 |
| 25 VM get vm => isolate.vm; | 25 VM get vm => isolate.vm; |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 256 return DebuggerLocation.complete(debugger, 'DebuggerLocationTestFoo.q') | 256 return DebuggerLocation.complete(debugger, 'DebuggerLocationTestFoo.q') |
| 257 .then((List<String> completions) { | 257 .then((List<String> completions) { |
| 258 expect(completions.toString(), equals('[]')); | 258 expect(completions.toString(), equals('[]')); |
| 259 }); | 259 }); |
| 260 }); | 260 }); |
| 261 }, | 261 }, |
| 262 | 262 |
| 263 ]; | 263 ]; |
| 264 | 264 |
| 265 main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction); | 265 main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction); |
| OLD | NEW |