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 | 4 // VMOptions=--compile_all --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 | 11 |
12 void testFunction() { | 12 void testFunction() { |
13 int i = 0; | 13 int i = 0; |
14 while (true) { | 14 while (true) { |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 return DebuggerLocation.complete(debugger, 'DebuggerLocationTestFoo.q') | 276 return DebuggerLocation.complete(debugger, 'DebuggerLocationTestFoo.q') |
277 .then((List<String> completions) { | 277 .then((List<String> completions) { |
278 expect(completions.toString(), equals('[]')); | 278 expect(completions.toString(), equals('[]')); |
279 }); | 279 }); |
280 }); | 280 }); |
281 }, | 281 }, |
282 | 282 |
283 ]; | 283 ]; |
284 | 284 |
285 main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction); | 285 main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction); |
OLD | NEW |