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

Unified Diff: test/runtime/dart_logging_runtime_test.dart

Issue 967933005: rename ddc -> dev_compiler, fixes #84 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/report_test.dart ('k') | tool/patch_sdk.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runtime/dart_logging_runtime_test.dart
diff --git a/test/runtime/dart_logging_runtime_test.dart b/test/runtime/dart_logging_runtime_test.dart
index 0310b96f3cbaf791f0b4169c7337fe3a6baecec0..8ec18bb853a5e0def1249f49c1cc7d7bf2956507 100644
--- a/test/runtime/dart_logging_runtime_test.dart
+++ b/test/runtime/dart_logging_runtime_test.dart
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import 'package:dev_compiler/runtime/dart_logging_runtime.dart' as ddc;
+import 'package:dev_compiler/runtime/dart_logging_runtime.dart' as devc;
import 'package:unittest/unittest.dart';
class A<T> {
@@ -19,7 +19,7 @@ void runTest() {
var l = [new A<String>("hello"), new A("world"), new B(), 42];
for (var item in l) {
try {
- ddc.cast(item, astring);
+ devc.cast(item, astring);
} catch (e) {
// Do nothing
}
@@ -37,19 +37,19 @@ Key dart_logging_runtime_test.dart 18:15 in runTest:
void main() {
test('summary', () {
runTest();
- var output = ddc.summary();
+ var output = devc.summary();
expect(output, equals(expected));
});
test('handler', () {
- int ddcFailures = 0;
+ int devcFailures = 0;
int dartFailures = 0;
- ddc.castRecordHandler = (String key, ddc.CastRecord record) {
- ddcFailures += (record.ddcSuccess) ? 0 : 1;
- dartFailures += (record.dartSuccess) ? 0 : 1;
+ devc.castRecordHandler = (String key, devc.CastRecord record) {
+ devcFailures += record.soundCast ? 0 : 1;
+ dartFailures += record.dartCast ? 0 : 1;
};
runTest();
- expect(ddcFailures, equals(2));
+ expect(devcFailures, equals(2));
expect(dartFailures, equals(1));
});
}
« no previous file with comments | « test/report_test.dart ('k') | tool/patch_sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698