Don't use dart:io in the pkg/glob tests.
R=rnystrom@google.com
Review URL: https://codereview.chromium.org//536453006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39788 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/test/match_test.dart b/test/match_test.dart
index eec050c..eeb307d 100644
--- a/test/match_test.dart
+++ b/test/match_test.dart
@@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import 'dart:io';
-
import 'package:glob/glob.dart';
import 'package:path/path.dart' as p;
import 'package:unittest/unittest.dart';
@@ -227,7 +225,7 @@
test("a relative path can be matched by an absolute glob", () {
var pattern = p.absolute('foo/bar');
- if (Platform.isWindows) pattern = pattern.replaceAll('\\', '/');
+ if (p.style == p.Style.windows) pattern = pattern.replaceAll('\\', '/');
expect('foo/bar', contains(new Glob(pattern)));
});