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

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

Issue 53313007: Change dart:io Platform.script to return a URI. Change all uses of Platform.script to work with th… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dom.py docs 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).readAsStringSync(); 8 var expected = new File(Platform.script.toFilePath()).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

Powered by Google App Engine
This is Rietveld 408576698