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

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

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index 1bbb6dd1e3b448a32c67dc6704c622f72bc5e15b..fa85c99edf2ed305bbb7697f9fda14300d43d2f6 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -143,7 +143,7 @@ class MockCompiler extends Compiler {
var script = new Script(uri, new MockFile(source));
var library = new LibraryElement(script);
parseScript(source, library);
- library.setExports(library.localScope.values);
+ library.setExports(library.localScope.values.toList());
return library;
}
@@ -237,8 +237,10 @@ class MockCompiler extends Compiler {
void compareWarningKinds(String text, expectedWarnings, foundWarnings) {
var fail = (message) => Expect.fail('$text: $message');
- Iterator<MessageKind> expected = expectedWarnings.iterator();
- Iterator<WarningMessage> found = foundWarnings.iterator();
+ HasNextIterator<MessageKind> expected =
+ new HasNextIterator(expectedWarnings.iterator);
+ HasNextIterator<WarningMessage> found =
+ new HasNextIterator(foundWarnings.iterator);
while (expected.hasNext && found.hasNext) {
Expect.equals(expected.next(), found.next().message.kind);
}
« no previous file with comments | « tests/compiler/dart2js/identity_test.dart ('k') | tests/compiler/dart2js/no_duplicate_constructor_body2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698