| 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);
|
| }
|
|
|