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

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

Issue 18535002: Fix stdin_sync_test on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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/io/stdin_sync_script.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/stdin_sync_test.dart
diff --git a/tests/standalone/io/stdin_sync_test.dart b/tests/standalone/io/stdin_sync_test.dart
index 3c2bf803329eb59e70afade9d4df6a3287f29b26..67082369b484f93a4bf097fe743825afbe902a20 100644
--- a/tests/standalone/io/stdin_sync_test.dart
+++ b/tests/standalone/io/stdin_sync_test.dart
@@ -37,7 +37,12 @@ void main() {
test("hej\rhej\nhej\r", ['hej\rhej', 'hej\r']);
- test("hej\r\r\nhej\r\nhej\r", ['hej\r', 'hej', 'hej\r']);
+ if (Platform.isWindows) {
+ // Windows trim one of the \r.
+ test("hej\r\r\r\nhej\r\nhej\r", ['hej\r', 'hej', 'hej\r']);
+ } else {
+ test("hej\r\r\nhej\r\nhej\r", ['hej\r', 'hej', 'hej\r']);
Bill Hesse 2013/07/02 14:49:43 This indicates an error in the newline handling wi
+ }
test("hej", ['hej']);
}
« no previous file with comments | « tests/standalone/io/stdin_sync_script.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698