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

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

Issue 94463002: More unit test fixes after IR returns different int types for inferrer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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 | « tests/compiler/dart2js/field_type_simple_inferer_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/simple_inferrer_test.dart
===================================================================
--- tests/compiler/dart2js/simple_inferrer_test.dart (revision 30752)
+++ tests/compiler/dart2js/simple_inferrer_test.dart (working copy)
@@ -767,8 +767,8 @@
new TypeMask.subtype(compiler.stringClass));
checkReturn('returnIntAsNum', typesTask.uint31Type);
checkReturn('returnAsTypedef', typesTask.functionType.nullable());
- checkReturn('returnTopLevelGetter', typesTask.intType);
- checkReturn('testDeadCode', typesTask.intType);
+ checkReturn('returnTopLevelGetter', typesTask.uint31Type);
+ checkReturn('testDeadCode', typesTask.uint31Type);
checkReturn('testLabeledIf', typesTask.uint31Type.nullable());
checkReturn('testSwitch1', typesTask.intType
.union(typesTask.doubleType, compiler)
@@ -795,7 +795,8 @@
var cls = findElement(compiler, className);
var element = cls.lookupLocalMember(methodName);
Expect.equals(type,
- typesInferrer.getReturnTypeOfElement(element).simplify(compiler));
+ typesInferrer.getReturnTypeOfElement(element).simplify(compiler),
+ '$className:$methodName');
}
checkReturnInClass('A', 'returnInt1', typesTask.intType);
@@ -814,7 +815,7 @@
checkReturnInClass('B', 'returnInt6', typesTask.intType);
checkReturnInClass('B', 'returnInt7', typesTask.intType);
checkReturnInClass('B', 'returnInt8', typesTask.intType);
- checkReturnInClass('B', 'returnInt9', typesTask.intType);
+ checkReturnInClass('B', 'returnInt9', typesTask.uint31Type);
checkFactoryConstructor(String className, String factoryName) {
var cls = findElement(compiler, className);
« no previous file with comments | « tests/compiler/dart2js/field_type_simple_inferer_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698