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

Unified Diff: utils/tests/string_encoding/utf16_test.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
« no previous file with comments | « utils/tests/string_encoding/dunit.dart ('k') | utils/tests/string_encoding/utf32_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)));
« no previous file with comments | « utils/tests/string_encoding/dunit.dart ('k') | utils/tests/string_encoding/utf32_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698