| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // OtherResources=stdin_sync_script.dart |
| 6 |
| 5 import "dart:convert"; | 7 import "dart:convert"; |
| 6 import "dart:io"; | 8 import "dart:io"; |
| 7 | 9 |
| 8 import "package:path/path.dart"; | 10 import "package:path/path.dart"; |
| 9 import "package:expect/expect.dart"; | 11 import "package:expect/expect.dart"; |
| 10 | 12 |
| 11 void testReadByte() { | 13 void testReadByte() { |
| 12 void test(String line, List<String> expected) { | 14 void test(String line, List<String> expected) { |
| 13 var script = Platform.script.resolve("stdin_sync_script.dart").toFilePath(); | 15 var script = Platform.script.resolve("stdin_sync_script.dart").toFilePath(); |
| 14 Process.start(Platform.executable, | 16 Process.start(Platform.executable, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 72 |
| 71 | 73 |
| 72 void main() { | 74 void main() { |
| 73 testReadByte(); | 75 testReadByte(); |
| 74 | 76 |
| 75 // testEchoMode and testLineMode is developer-interactive tests, thus not | 77 // testEchoMode and testLineMode is developer-interactive tests, thus not |
| 76 // enabled. | 78 // enabled. |
| 77 //testEchoMode(); | 79 //testEchoMode(); |
| 78 //testLineMode(); | 80 //testLineMode(); |
| 79 } | 81 } |
| OLD | NEW |