| 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 import 'dart:io'; | 5 import 'dart:io'; |
| 6 | 6 |
| 7 void main() { | 7 void main() { |
| 8 var expected = new File(new Options().script).readAsStringSync(); | 8 var expected = new File(Platform.script).readAsStringSync(); |
| 9 var stdin = new File('/dev/fd/0').readAsStringSync(); | 9 var stdin = new File('/dev/fd/0').readAsStringSync(); |
| 10 if (expected != stdin) { | 10 if (expected != stdin) { |
| 11 throw "stdin not equal expected file"; | 11 throw "stdin not equal expected file"; |
| 12 } | 12 } |
| 13 } | 13 } |
| OLD | NEW |