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

Unified Diff: tests/standalone/io/string_stream_test.dart

Issue 11418115: Fix Unicode issues in dart2js and dart2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove accidental test expectation dupe Created 8 years, 1 month 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: tests/standalone/io/string_stream_test.dart
diff --git a/tests/standalone/io/string_stream_test.dart b/tests/standalone/io/string_stream_test.dart
index f335291d662b7b078ae172d50e2afa266bcbb7c5..d1369dcceec3637a1a9d5f4f97c271332aea1488 100644
--- a/tests/standalone/io/string_stream_test.dart
+++ b/tests/standalone/io/string_stream_test.dart
@@ -29,8 +29,8 @@ void testUtf8() {
Expect.equals(new String.fromCharCodes([0xffff]), s[5]);
// Surrogate pair for U+1D11E.
- Expect.equals(new String.fromCharCodes([0xd834]), s[6]);
- Expect.equals(new String.fromCharCodes([0xdd1e]), s[7]);
+ Expect.equals(new String.fromCharCodes([0xd834, 0xdd1e]),
+ s.substring(6, 8));
}
stream.onData = stringData;
}

Powered by Google App Engine
This is Rietveld 408576698