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..cf8a08f177a3ad4bcde4de6fbb909270d50c15df 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.fromCodeUnits([0xd834, 0xdd1e]), |
+ s.substring(6, 8)); |
} |
stream.onData = stringData; |
} |