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

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

Issue 2846433003: Run closed_world2_test using the normal compiler pipeline. (Closed)
Patch Set: Updated cf. comments Created 3 years, 8 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
« no previous file with comments | « tests/compiler/dart2js/source_map_name_test.dart ('k') | tests/compiler/dart2js/type_combination_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 644f3d1387355367622c6dcd57c7c978d7b46fd1..4f0622f01ee765e5832e194b963c5221a5ebf92f 100644
--- a/tests/compiler/dart2js/type_checker_test.dart
+++ b/tests/compiler/dart2js/type_checker_test.dart
@@ -173,7 +173,8 @@ class Class {
}
""";
compiler.parseScript(script);
- ClassElement foo = compiler.mainApp.find("Class");
+ LibraryElement mainApp = compiler.mainApp;
+ ClassElement foo = mainApp.find("Class");
foo.ensureResolved(compiler.resolution);
FunctionElement method = foo.lookupLocalMember('forIn');
@@ -412,7 +413,8 @@ class Class {
}
""";
compiler.parseScript(script);
- ClassElement foo = compiler.mainApp.find("Class");
+ LibraryElement mainApp = compiler.mainApp;
+ ClassElement foo = mainApp.find("Class");
foo.ensureResolved(compiler.resolution);
FunctionElement method = foo.lookupLocalMember('forIn');
@@ -1355,7 +1357,8 @@ testThis(MockCompiler compiler) {
void method() {}
}""";
compiler.parseScript(script);
- ClassElement foo = compiler.mainApp.find("Foo");
+ LibraryElement mainApp = compiler.mainApp;
+ ClassElement foo = mainApp.find("Foo");
foo.ensureResolved(compiler.resolution);
Element method = foo.lookupLocalMember('method');
analyzeIn(compiler, method, "{ int i = this; }", warnings: NOT_ASSIGNABLE);
@@ -1375,7 +1378,8 @@ testSuper(MockCompiler compiler) {
}
''';
compiler.parseScript(script);
- ClassElement B = compiler.mainApp.find("B");
+ LibraryElement mainApp = compiler.mainApp;
+ ClassElement B = mainApp.find("B");
B.ensureResolved(compiler.resolution);
Element method = B.lookupLocalMember('method');
analyzeIn(compiler, method, "{ int i = super.field; }",
@@ -1672,7 +1676,8 @@ void testTypeVariableExpressions(MockCompiler compiler) {
void method() {}
}""";
compiler.parseScript(script);
- ClassElement foo = compiler.mainApp.find("Foo");
+ LibraryElement mainApp = compiler.mainApp;
+ ClassElement foo = mainApp.find("Foo");
foo.ensureResolved(compiler.resolution);
Element method = foo.lookupLocalMember('method');
@@ -1707,7 +1712,8 @@ class Test<S extends Foo, T> {
""";
compiler.parseScript(script);
- ClassElement classTest = compiler.mainApp.find("Test");
+ LibraryElement mainApp = compiler.mainApp;
+ ClassElement classTest = mainApp.find("Test");
classTest.ensureResolved(compiler.resolution);
FunctionElement methodTest = classTest.lookupLocalMember("test");
@@ -1747,7 +1753,8 @@ class Test<S extends T, T extends Foo> {
}""";
compiler.parseScript(script);
- ClassElement classTest = compiler.mainApp.find("Test");
+ LibraryElement mainApp = compiler.mainApp;
+ ClassElement classTest = mainApp.find("Test");
classTest.ensureResolved(compiler.resolution);
FunctionElement methodTest = classTest.lookupLocalMember("test");
@@ -1769,7 +1776,8 @@ class Test<S extends T, T extends S> {
}""";
compiler.parseScript(script);
- ClassElement classTest = compiler.mainApp.find("Test");
+ LibraryElement mainApp = compiler.mainApp;
+ ClassElement classTest = mainApp.find("Test");
classTest.ensureResolved(compiler.resolution);
FunctionElement methodTest = classTest.lookupLocalMember("test");
@@ -2499,7 +2507,8 @@ testAwait(MockCompiler compiler) {
Foo self() => this;
}""";
compiler.parseScript(script);
- ClassElement foo = compiler.mainApp.find("Foo");
+ LibraryElement mainApp = compiler.mainApp;
+ ClassElement foo = mainApp.find("Foo");
foo.ensureResolved(compiler.resolution);
FunctionElement method = foo.lookupLocalMember('method');
analyzeIn(compiler, method, "{ await 0; }");
« no previous file with comments | « tests/compiler/dart2js/source_map_name_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