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

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

Issue 11788016: Update dart2js unit tests to new library API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
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: dart/tests/compiler/dart2js/mirrors_test.dart
diff --git a/dart/tests/compiler/dart2js/mirrors_test.dart b/dart/tests/compiler/dart2js/mirrors_test.dart
index 0930702aac0d1547d180455366b16aa0b2c73ed9..1819193fb9ea61ca85ac0f8b8ba69b7259e157c2 100644
--- a/dart/tests/compiler/dart2js/mirrors_test.dart
+++ b/dart/tests/compiler/dart2js/mirrors_test.dart
@@ -286,7 +286,9 @@ void testFoo(MirrorSystem system, LibraryMirror helperLibrary,
Expect.throws(() => data.reflectee, (_) => true);
MapInstanceMirror mapData = data;
Expect.equals(1, mapData.length);
- Expect.stringEquals('foo', mapData.keys.iterator().next());
+ var it = mapData.keys.iterator;
+ Expect.isTrue(it.moveNext());
+ Expect.stringEquals('foo', it.current);
mapData['foo'].then((InstanceMirror element) {
Expect.isNotNull(element);
Expect.isTrue(element.hasReflectee);

Powered by Google App Engine
This is Rietveld 408576698