| 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 'dart:async'; | |
| 7 import 'dart:developer'; | 6 import 'dart:developer'; |
| 8 import 'package:observatory/service_io.dart'; | 7 import 'package:observatory/service_io.dart'; |
| 9 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
| 9 import 'service_test_common.dart'; |
| 10 import 'test_helper.dart'; | 10 import 'test_helper.dart'; |
| 11 | 11 |
| 12 void method(int value, _) { | 12 void method(int value, _) { |
| 13 debugger(); | 13 debugger(); |
| 14 } | 14 } |
| 15 | 15 |
| 16 void testFunction() { | 16 void testFunction() { |
| 17 int i = 0; | 17 int i = 0; |
| 18 while (true) { | 18 while (true) { |
| 19 if (++i % 100000000 == 0) { | 19 if (++i % 100000000 == 0) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 38 result = await isolate.evalFrame(0, 'value + _'); | 38 result = await isolate.evalFrame(0, 'value + _'); |
| 39 expect(result.valueAsString, equals('10050')); | 39 expect(result.valueAsString, equals('10050')); |
| 40 | 40 |
| 41 result = await isolate.evalFrame(1, 'i'); | 41 result = await isolate.evalFrame(1, 'i'); |
| 42 expect(result.valueAsString, equals('100000000')); | 42 expect(result.valueAsString, equals('100000000')); |
| 43 }, | 43 }, |
| 44 | 44 |
| 45 ]; | 45 ]; |
| 46 | 46 |
| 47 main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction); | 47 main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction); |
| OLD | NEW |