| 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:unittest/unittest.dart'; | 7 import 'package:unittest/unittest.dart'; |
| 8 import 'test_helper.dart'; | 8 import 'test_helper.dart'; |
| 9 import 'dart:developer'; | 9 import 'dart:developer'; |
| 10 | 10 |
| 11 int globalVar = 100; | 11 int globalVar = 100; |
| 12 | 12 |
| 13 class MyClass { | 13 class MyClass { |
| 14 static void myFunction(int value) { | 14 static void myFunction(int value) { |
| 15 if (value < 0) { | 15 if (value < 0) { |
| 16 print("negative"); | 16 print("negative"); |
| 17 } else { | 17 } else { |
| 18 print("positive"); | 18 print("positive"); |
| 19 } | 19 } |
| 20 debugger(); | 20 debugger(); |
| 21 } | 21 } |
| 22 | 22 |
| 23 static void otherFunction(int value) { | 23 static void otherFunction(int value) { |
| 24 if (value < 0) { | 24 if (value < 0) { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 // Isolate | 97 // Isolate |
| 98 coverage = await isolate.invokeRpcNoUpgrade('_getCoverage', {}); | 98 coverage = await isolate.invokeRpcNoUpgrade('_getCoverage', {}); |
| 99 expect(coverage['type'], equals('CodeCoverage')); | 99 expect(coverage['type'], equals('CodeCoverage')); |
| 100 expect(coverage['coverage'].length, greaterThan(100)); | 100 expect(coverage['coverage'].length, greaterThan(100)); |
| 101 }, | 101 }, |
| 102 | 102 |
| 103 ]; | 103 ]; |
| 104 | 104 |
| 105 main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction); | 105 main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction); |
| OLD | NEW |