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

Unified Diff: tests/standalone/io/file_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_stat_test.dart ('k') | tests/standalone/io/http_proxy_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_test.dart
diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
index 17cead14a5257f584257cb284a6c9b5cdf545802..6a16efcfff93b78ca48d132e886b9ffe3a536d6d 100644
--- a/tests/standalone/io/file_test.dart
+++ b/tests/standalone/io/file_test.dart
@@ -5,6 +5,7 @@
// Dart test program for testing file I/O.
import "package:expect/expect.dart";
+import "package:path/path.dart";
import 'dart:async';
import 'dart:collection';
import 'dart:io';
@@ -926,14 +927,12 @@ class FileTest {
}
}
- static void testOpenFileFromPath() {
+ static void testOpenFile() {
var name = getFilename("tests/vm/data/fixed_length_file");
- var path = new Path(name);
- var f = new File.fromPath(path);
+ var f = new File(name);
Expect.isTrue(f.existsSync());
name = f.fullPathSync();
- path = new Path(name);
- var g = new File.fromPath(path);
+ var g = new File(name);
Expect.isTrue(g.existsSync());
Expect.equals(name, g.fullPathSync());
}
@@ -1291,7 +1290,7 @@ class FileTest {
testPositionSync();
testOpenDirectoryAsFile();
testOpenDirectoryAsFileSync();
- testOpenFileFromPath();
+ testOpenFile();
testReadAsBytes();
testReadAsBytesEmptyFile();
testReadAsBytesSync();
« no previous file with comments | « tests/standalone/io/file_stat_test.dart ('k') | tests/standalone/io/http_proxy_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698