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

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

Issue 24952003: Change TypeMask.base to be a ClassElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Moar declaration. Created 7 years, 3 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/patch_test.dart
diff --git a/tests/compiler/dart2js/patch_test.dart b/tests/compiler/dart2js/patch_test.dart
index 98818100bffe53c5beb29afcde7733042e036062..34bf187bee4084756a885d42247562f5751eb4c5 100644
--- a/tests/compiler/dart2js/patch_test.dart
+++ b/tests/compiler/dart2js/patch_test.dart
@@ -730,7 +730,7 @@ testPatchAndSelector() {
// typed selector.
var selector = new Selector.call(
buildSourceString('method'), compiler.coreLibrary, 0);
- var typedSelector = new TypedSelector.exact(cls.rawType, selector);
+ var typedSelector = new TypedSelector.exact(cls, selector);
Element method =
cls.implementation.lookupLocalMember(buildSourceString('method'));
Expect.isTrue(selector.applies(method, compiler));
@@ -740,7 +740,7 @@ testPatchAndSelector() {
// for a typed selector.
selector = new Selector.call(
buildSourceString('clear'), compiler.coreLibrary, 0);
- typedSelector = new TypedSelector.exact(cls.rawType, selector);
+ typedSelector = new TypedSelector.exact(cls, selector);
method = cls.lookupLocalMember(buildSourceString('clear'));
Expect.isTrue(selector.applies(method, compiler));
Expect.isTrue(typedSelector.applies(method, compiler));
@@ -749,7 +749,7 @@ testPatchAndSelector() {
// for a typed selector on a subclass.
cls = ensure(compiler, "B", compiler.coreLibrary.find);
cls.ensureResolved(compiler);
- typedSelector = new TypedSelector.exact(cls.rawType, selector);
+ typedSelector = new TypedSelector.exact(cls, selector);
Expect.isTrue(selector.applies(method, compiler));
Expect.isTrue(typedSelector.applies(method, compiler));
}));
« no previous file with comments | « tests/compiler/dart2js/field_type_simple_inferer_test.dart ('k') | tests/compiler/dart2js/simple_inferrer_closure_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698