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

Unified Diff: tests/standalone/src/io/StringStreamTest.dart

Issue 9653026: Add writeString method to OutputStream (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 8 years, 9 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 | « tests/standalone/src/io/ListOutputStreamTest.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/StringStreamTest.dart
diff --git a/tests/standalone/src/io/StringStreamTest.dart b/tests/standalone/src/io/StringStreamTest.dart
index 243b5e3d4004c2fa57af4af3e2b0b81326e9c6ac..d2057481501c56383838a969c8e18c34933ac54b 100644
--- a/tests/standalone/src/io/StringStreamTest.dart
+++ b/tests/standalone/src/io/StringStreamTest.dart
@@ -37,7 +37,7 @@ void testLatin1() {
InputStream s = new ListInputStream();
s.write(data);
s.markEndOfStream();
- StringInputStream stream = new StringInputStream(s, "ISO-8859-1");
+ StringInputStream stream = new StringInputStream(s, Encoding.ISO_8859_1);
void stringData() {
String s = stream.read();
Expect.equals(8, s.length);
@@ -57,7 +57,8 @@ void testAscii() {
InputStream s = new ListInputStream();
s.write(data);
s.markEndOfStream();
- StringInputStream stream = new StringInputStream(s, "ASCII");
+ StringInputStream stream =
+ new StringInputStream(s, Encoding.ASCII);
void stringData() {
String s = stream.read();
Expect.equals(6, s.length);
« no previous file with comments | « tests/standalone/src/io/ListOutputStreamTest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698