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

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

Issue 2939063002: Strong mode cleaning of many dart2js tests. (Closed)
Patch Set: Use ClassElement. Created 3 years, 6 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/trust_type_annotations_test.dart
diff --git a/tests/compiler/dart2js/trust_type_annotations_test.dart b/tests/compiler/dart2js/trust_type_annotations_test.dart
index b7933436262efd08d7fc614e5d075e647b429f67..f7a390aaf76bbf44234432dec62c70ff3c8f955e 100644
--- a/tests/compiler/dart2js/trust_type_annotations_test.dart
+++ b/tests/compiler/dart2js/trust_type_annotations_test.dart
@@ -58,8 +58,7 @@ void main() {
checkReturn(String name, TypeMask type) {
var element = classA.lookupMember(name);
var mask = typesInferrer.getReturnTypeOfElement(element);
- Expect.isTrue(type.containsMask(
- typesInferrer.getReturnTypeOfElement(element), closedWorld));
+ Expect.isTrue(type.containsMask(mask, closedWorld));
}
checkType(String name, type) {

Powered by Google App Engine
This is Rietveld 408576698