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

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

Issue 19967002: Remove uses of Path class from tests/standalone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix windows error Created 7 years, 5 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/file_read_special_device_test.dart ('k') | tests/standalone/io/file_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_stat_test.dart
diff --git a/tests/standalone/io/file_stat_test.dart b/tests/standalone/io/file_stat_test.dart
index 171417b38a90896e36181e40f91643d956cd53dd..7b3e33194f718efbb91ac754d0f548d8374c4f1a 100644
--- a/tests/standalone/io/file_stat_test.dart
+++ b/tests/standalone/io/file_stat_test.dart
@@ -5,13 +5,14 @@
// Dart test program for testing dart:io FileSystemEntity.Stat().
import "package:expect/expect.dart";
+import "package:path/path.dart";
import 'dart:async';
import 'dart:io';
import 'dart:isolate';
void testStat() {
Directory directory = new Directory("").createTempSync();
- File file = new File.fromPath(new Path(directory.path).append("file"));
+ File file = new File(join(directory.path, "file"));
Expect.throws(file.statSync);
Expect.throws(() => FileStat.statSync(file.path));
file.writeAsStringSync("Dart IO library test of FileStat");
@@ -48,7 +49,7 @@ void testStat() {
Future testStatAsync() {
return new Directory("").createTemp()
.then((directory) {
- File file = new File.fromPath(new Path(directory.path).append("file"));
+ File file = new File(join(directory.path, "file"));
return FileStat.stat(file.path)
.then((_) => Expect.fail("FileStat.stat should throw an exception."))
.catchError((e) => null)
« no previous file with comments | « tests/standalone/io/file_read_special_device_test.dart ('k') | tests/standalone/io/file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698