| 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 | 4 |
| 5 import 'package:observatory/service_io.dart'; | 5 import 'package:observatory/service_io.dart'; |
| 6 import 'package:observatory/debugger.dart'; | 6 import 'package:observatory/debugger.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 void testFunction() { | 11 void testFunction() { |
| 12 int i = 0; | 12 int i = 0; |
| 13 while (true) { | 13 while (true) { |
| 14 if (++i % 100000000 == 0) { // line 14 | 14 if (++i % 100000000 == 0) { // line 14 |
| 15 print(i); | 15 print(i); |
| 16 } | 16 } |
| 17 } | 17 } |
| 18 } | 18 } |
| 19 | 19 |
| 20 class TestDebugger extends Debugger { | 20 class TestDebugger extends Debugger { |
| 21 TestDebugger(this.isolate, this.stack); | 21 TestDebugger(this.isolate, this.stack); |
| 22 | 22 |
| 23 VM get vm => isolate.vm; |
| 23 Isolate isolate; | 24 Isolate isolate; |
| 24 ServiceMap stack; | 25 ServiceMap stack; |
| 25 int currentFrame = 0; | 26 int currentFrame = 0; |
| 26 } | 27 } |
| 27 | 28 |
| 28 void source_location_dummy_function() { | 29 void source_location_dummy_function() { |
| 29 } | 30 } |
| 30 | 31 |
| 31 class SourceLocationTestFoo { | 32 class SourceLocationTestFoo { |
| 32 SourceLocationTestFoo(this.field); | 33 SourceLocationTestFoo(this.field); |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 return SourceLocation.complete(debugger, 'SourceLocationTestFoo.q') | 271 return SourceLocation.complete(debugger, 'SourceLocationTestFoo.q') |
| 271 .then((List<String> completions) { | 272 .then((List<String> completions) { |
| 272 expect(completions.toString(), equals('[]')); | 273 expect(completions.toString(), equals('[]')); |
| 273 }); | 274 }); |
| 274 }); | 275 }); |
| 275 }, | 276 }, |
| 276 | 277 |
| 277 ]; | 278 ]; |
| 278 | 279 |
| 279 main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction); | 280 main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction); |
| OLD | NEW |