Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: runtime/observatory/tests/service/coverage_test.dart

Issue 1566793002: Expose the new _getSourceReport api in the service protocol. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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);
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/tests/service/get_source_report_test.dart » ('j') | runtime/vm/service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698