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

Side by Side Diff: test/report_test.dart

Issue 954773003: rename package:ddc to package:dev_compiler (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « test/end_to_end_test.dart ('k') | test/runtime/dart_logging_runtime_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4
5 /// Tests for summary reporting. 5 /// Tests for summary reporting.
6 library ddc.test.report_test; 6 library ddc.test.report_test;
7 7
8 import 'package:unittest/compact_vm_config.dart'; 8 import 'package:unittest/compact_vm_config.dart';
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 10
11 import 'package:ddc/src/testing.dart'; 11 import 'package:dev_compiler/src/testing.dart';
12 import 'package:ddc/src/report.dart'; 12 import 'package:dev_compiler/src/report.dart';
13 13
14 main() { 14 main() {
15 useCompactVMConfiguration(); 15 useCompactVMConfiguration();
16 test('toJson/parse', () { 16 test('toJson/parse', () {
17 var files = { 17 var files = {
18 '/main.dart': ''' 18 '/main.dart': '''
19 import 'package:foo/bar.dart'; 19 import 'package:foo/bar.dart';
20 20
21 test1() { 21 test1() {
22 x = /*severe:StaticTypeError*/"hi"; 22 x = /*severe:StaticTypeError*/"hi";
(...skipping 12 matching lines...) Expand all
35 35
36 var summary1 = reporter.result; 36 var summary1 = reporter.result;
37 expect(summary1.loose['main'].messages.length, 1); 37 expect(summary1.loose['main'].messages.length, 1);
38 expect(summary1.packages['foo'].libraries['bar'].messages.length, 1); 38 expect(summary1.packages['foo'].libraries['bar'].messages.length, 1);
39 39
40 var summary2 = GlobalSummary.parse(summary1.toJsonMap()); 40 var summary2 = GlobalSummary.parse(summary1.toJsonMap());
41 expect(summary2.loose['main'].messages.length, 1); 41 expect(summary2.loose['main'].messages.length, 1);
42 expect(summary2.packages['foo'].libraries['bar'].messages.length, 1); 42 expect(summary2.packages['foo'].libraries['bar'].messages.length, 1);
43 }); 43 });
44 } 44 }
OLDNEW
« no previous file with comments | « test/end_to_end_test.dart ('k') | test/runtime/dart_logging_runtime_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698