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

Unified Diff: pkg/watcher/test/utils.dart

Issue 23183006: Normalize test paths. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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: pkg/watcher/test/utils.dart
diff --git a/pkg/watcher/test/utils.dart b/pkg/watcher/test/utils.dart
index 18bec9728d5ac9e6f25720c3925c9d71c77c4b1e..3bbe0e1a651c2dba57264d6679afef604e31f9d8 100644
--- a/pkg/watcher/test/utils.dart
+++ b/pkg/watcher/test/utils.dart
@@ -109,7 +109,10 @@ DirectoryWatcher createWatcher({String dir, bool waitForReady}) {
/// Validates that events are delivered for all paths in [paths], but allows
/// them in any order.
void expectEvents(ChangeType type, Iterable<String> paths) {
- var pathSet = paths.map((path) => p.join(_sandboxDir, path)).toSet();
+ var pathSet = paths
+ .map((path) => p.join(_sandboxDir, path))
+ .map(p.normalize)
+ .toSet();
// Create an expectation for as many paths as we have.
var futures = [];
« 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