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

Unified Diff: utils/tests/string_encoding/utf8_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/utf32_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/string_encoding/utf8_test.dart
diff --git a/utils/tests/string_encoding/utf8_test.dart b/utils/tests/string_encoding/utf8_test.dart
index 25729d6f64960e7de1dac3eb22311a21a6c1848a..596626e0c298bc2b5e8bda5e81670ff95ac1ca13 100755
--- a/utils/tests/string_encoding/utf8_test.dart
+++ b/utils/tests/string_encoding/utf8_test.dart
@@ -459,15 +459,14 @@ class Utf8Tests extends TestClass {
void testIterableMethods() {
IterableUtf8Decoder englishDecoder = decodeUtf8AsIterable(testEnglishUtf8);
// get the first character
- Expect.equals(testEnglishUtf8[0], englishDecoder.iterator().next());
+ Expect.equals(testEnglishUtf8[0], englishDecoder.first);
// get the whole translation using the Iterable interface
Expect.stringEquals(testEnglishPhrase,
new String.fromCharCodes(new List<int>.from(englishDecoder)));
IterableUtf8Decoder kataDecoder = decodeUtf8AsIterable(testKatakanaUtf8);
// get the first character
- Expect.equals(testKatakanaPhrase.charCodes[0],
- kataDecoder.iterator().next());
+ Expect.equals(testKatakanaPhrase.charCodes[0], kataDecoder.first);
// get the whole translation using the Iterable interface
Expect.stringEquals(testKatakanaPhrase,
new String.fromCharCodes(new List<int>.from(kataDecoder)));
« no previous file with comments | « utils/tests/string_encoding/utf32_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698