| commit | 1da9e39ae97edcd8cf210668dc26569aca31c9f5 | [log] [tgz] |
|---|---|---|
| author | rnystrom@google.com <rnystrom@google.com> | Wed Aug 14 21:46:41 2013 +0000 |
| committer | rnystrom@google.com <rnystrom@google.com> | Wed Aug 14 21:46:41 2013 +0000 |
| tree | ff1a733e9d791486782f8efdac927df89e43c640 | |
| parent | 897f32c771badac59bb350566e62338f4fdca53c [diff] |
Normalize test paths. BUG= R=nweiz@google.com Review URL: https://codereview.chromium.org//23183006 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@26160 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/pkgs/watcher/test/utils.dart b/pkgs/watcher/test/utils.dart index 18bec97..3bbe0e1 100644 --- a/pkgs/watcher/test/utils.dart +++ b/pkgs/watcher/test/utils.dart
@@ -109,7 +109,10 @@ /// 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 = [];