Index: utils/tests/string_encoding/utf16_test.dart |
diff --git a/utils/tests/string_encoding/utf16_test.dart b/utils/tests/string_encoding/utf16_test.dart |
index a55f760f0be15c131b2ad59c0d5f3286ebcf99a4..004dcf0a76c1cb0d43022f9f402b9f226c569140 100755 |
--- a/utils/tests/string_encoding/utf16_test.dart |
+++ b/utils/tests/string_encoding/utf16_test.dart |
@@ -113,13 +113,12 @@ class Utf16Tests extends TestClass { |
void testIterableMethods() { |
// empty input |
- Expect.isFalse(decodeUtf16AsIterable([]).iterator().hasNext); |
+ Expect.isFalse(decodeUtf16AsIterable([]).iterator.moveNext()); |
IterableUtf16Decoder koreanDecoder = |
decodeUtf16AsIterable(testKoreanCharSubsetUtf16beBom); |
// get the first character |
- Expect.equals(testKoreanCharSubset.charCodes[0], |
- koreanDecoder.iterator().next()); |
+ Expect.equals(testKoreanCharSubset.charCodes[0], koreanDecoder.first); |
// get the whole translation using the Iterable interface |
Expect.stringEquals(testKoreanCharSubset, |
new String.fromCharCodes(new List<int>.from(koreanDecoder))); |