Chromium Code Reviews

Side by Side Diff: test/runtime/dart_logging_runtime_test.dart

Issue 1166683005: upgrade dependencies, including migration to package:test (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « test/report_test.dart ('k') | test/runtime/dart_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 import 'package:dev_compiler/runtime/dart_logging_runtime.dart' as devc; 5 import 'package:dev_compiler/runtime/dart_logging_runtime.dart' as devc;
6 import 'package:unittest/unittest.dart'; 6 import 'package:test/test.dart';
7 7
8 class A<T> { 8 class A<T> {
9 T x; 9 T x;
10 A(this.x); 10 A(this.x);
11 } 11 }
12 12
13 class B extends A<String> { 13 class B extends A<String> {
14 B() : super("B!"); 14 B() : super("B!");
15 } 15 }
16 16
(...skipping 31 matching lines...)
48 int dartFailures = 0; 48 int dartFailures = 0;
49 devc.castRecordHandler = (String key, devc.CastRecord record) { 49 devc.castRecordHandler = (String key, devc.CastRecord record) {
50 devcFailures += record.soundCast ? 0 : 1; 50 devcFailures += record.soundCast ? 0 : 1;
51 dartFailures += record.dartCast ? 0 : 1; 51 dartFailures += record.dartCast ? 0 : 1;
52 }; 52 };
53 runTest(); 53 runTest();
54 expect(devcFailures, equals(2)); 54 expect(devcFailures, equals(2));
55 expect(dartFailures, equals(1)); 55 expect(dartFailures, equals(1));
56 }); 56 });
57 } 57 }
OLDNEW
« no previous file with comments | « test/report_test.dart ('k') | test/runtime/dart_runtime_test.dart » ('j') | no next file with comments »

Powered by Google App Engine