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

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

Issue 1562023002: Add test of unittests. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments Created 4 years, 11 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/resolver_test.dart
diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart
index bc5878ea0b3132bfa60e934fe8663d235acae628..3396e535d038d11402a0b6fbc427c091ddd778d6 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -198,8 +198,10 @@ Future testTypeVariables() {
'}');
ClassElement foo = compiler.mainApp.find('Foo');
foo.ensureResolved(compiler.resolution);
- foo.lookupLocalMember('t').computeType(compiler.resolution);
- foo.lookupLocalMember('foo').computeType(compiler.resolution);
+ MemberElement tMember = foo.lookupLocalMember('t');
+ tMember.computeType(compiler.resolution);
+ MemberElement fooMember = foo.lookupLocalMember('foo');
+ fooMember.computeType(compiler.resolution);
compiler.resolver.resolve(foo.lookupLocalMember('bar'));
DiagnosticCollector collector = compiler.diagnosticCollector;
Expect.equals(0, collector.warnings.length);

Powered by Google App Engine
This is Rietveld 408576698