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

Unified Diff: tests/compiler/dart2js/type_checker_test.dart

Issue 1421003004: Add CoreClasses (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment. Created 5 years, 2 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
Index: tests/compiler/dart2js/type_checker_test.dart
diff --git a/tests/compiler/dart2js/type_checker_test.dart b/tests/compiler/dart2js/type_checker_test.dart
index 224b56a43ae05a4557248a78eb5857c3040b93dc..ff7638d9326338705c49a5573ca8c06b6d0dfbf7 100644
--- a/tests/compiler/dart2js/type_checker_test.dart
+++ b/tests/compiler/dart2js/type_checker_test.dart
@@ -76,11 +76,10 @@ testSimpleTypes(MockCompiler compiler) {
Expect.equals(type, analyzeType(compiler, code));
}
- checkType(compiler.intClass.computeType(compiler.resolution), "3");
- checkType(compiler.boolClass.computeType(compiler.resolution), "false");
- checkType(compiler.boolClass.computeType(compiler.resolution), "true");
- checkType(
- compiler.stringClass.computeType(compiler.resolution), "'hestfisk'");
+ checkType(compiler.coreTypes.intType, "3");
+ checkType(compiler.coreTypes.boolType, "false");
+ checkType(compiler.coreTypes.boolType, "true");
+ checkType(compiler.coreTypes.stringType, "'hestfisk'");
}
Future testReturn(MockCompiler compiler) {
« no previous file with comments | « tests/compiler/dart2js/trust_type_annotations_test.dart ('k') | tests/compiler/dart2js/type_combination_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698