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

Unified Diff: tests/standalone/src/FileTest.dart

Issue 9429054: Fix file test that was too specific. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/FileTest.dart
diff --git a/tests/standalone/src/FileTest.dart b/tests/standalone/src/FileTest.dart
index 3854802420299efc8962e75cd6fb74ddbe8086a6..3c2e5b12228bc3b3875b568ea08bdd0d37d08dd8 100644
--- a/tests/standalone/src/FileTest.dart
+++ b/tests/standalone/src/FileTest.dart
@@ -471,7 +471,7 @@ class FileTest {
d.errorHandler = (s) => Expect.fail("no error expected");
d.existsHandler = (exists) {
Expect.isTrue(exists);
- Expect.equals(tempDir, d.path);
+ Expect.isTrue(d.path.endsWith(tempDir));
file.delete();
file.deleteHandler = () {
var file_dir = new File(".");
@@ -505,7 +505,7 @@ class FileTest {
// Check that the path of the returned directory is the temp directory.
Directory d = file.directorySync();
Expect.isTrue(d.existsSync());
- Expect.equals(tempDir, d.path);
+ Expect.isTrue(d.path.endsWith(tempDir));
file.deleteSync();
// Directories should throw exception.
var file_dir = new File(".");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698