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

Side by Side Diff: tests/standalone/io/file_read_stdio_script.dart

Issue 52723007: Revert "Change dart:io Platform.script to return a Uri." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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(Platform.script.toFilePath()).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 }
OLDNEW
« no previous file with comments | « tests/standalone/io/file_read_special_device_test.dart ('k') | tests/standalone/io/http_cross_process_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698