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

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

Issue 10964016: Change the type inference for fields in dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final round of changes Created 8 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
« no previous file with comments | « tests/compiler/dart2js/field_type_inferer_test.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/metadata_test.dart
diff --git a/tests/compiler/dart2js/metadata_test.dart b/tests/compiler/dart2js/metadata_test.dart
index 1fcb75a34496ce873e3ceebae23c64b4d0f56691..4e02d54e1d4b9c2a237344de11665c83e29f5ecd 100644
--- a/tests/compiler/dart2js/metadata_test.dart
+++ b/tests/compiler/dart2js/metadata_test.dart
@@ -22,6 +22,7 @@ void checkAnnotation(String name, String declaration,
main() {}""";
compileAndCheck(source, name, (compiler, element) {
+ compiler.enqueuer.resolution.queueIsClosed = false;
Expect.equals(1, length(element.metadata));
MetadataAnnotation annotation = element.metadata.head;
annotation.ensureResolved(compiler);
@@ -37,6 +38,7 @@ void checkAnnotation(String name, String declaration,
main() {}""";
compileAndCheck(source, name, (compiler, element) {
+ compiler.enqueuer.resolution.queueIsClosed = false;
Expect.equals(2, length(element.metadata));
MetadataAnnotation annotation1 = element.metadata.head;
MetadataAnnotation annotation2 = element.metadata.tail.head;
@@ -63,6 +65,7 @@ void checkAnnotation(String name, String declaration,
main() {}""";
compileAndCheck(source, 'Foo', (compiler, element) {
+ compiler.enqueuer.resolution.queueIsClosed = false;
Expect.equals(0, length(element.metadata));
element.ensureResolved(compiler);
Expect.equals(0, length(element.metadata));
@@ -84,6 +87,7 @@ void checkAnnotation(String name, String declaration,
main() {}""";
compileAndCheck(source, 'Foo', (compiler, element) {
+ compiler.enqueuer.resolution.queueIsClosed = false;
Expect.equals(0, length(element.metadata));
element.ensureResolved(compiler);
Expect.equals(0, length(element.metadata));
« no previous file with comments | « tests/compiler/dart2js/field_type_inferer_test.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698