| 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 | 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...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |