| Index: tools/testing/dart/multitest.dart
|
| diff --git a/tools/testing/dart/multitest.dart b/tools/testing/dart/multitest.dart
|
| index 3bb4b8f6a1eb3b49d1527880cbde16e4dd95da10..6c2f84281e291ca1872645739a1104cda11ba8d1 100644
|
| --- a/tools/testing/dart/multitest.dart
|
| +++ b/tools/testing/dart/multitest.dart
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // 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.
|
|
|
| @@ -155,7 +155,7 @@ class _Annotation {
|
| Set<String> _findAllRelativeImports(String topLibrary) {
|
| Set<String> toSearch = new Set<String>.from([topLibrary]);
|
| Set<String> foundImports = new HashSet<String>();
|
| - String pathSep = new Platform().pathSeparator();
|
| + String pathSep = Platform.pathSeparator();
|
| int end = topLibrary.lastIndexOf(pathSep);
|
| String libraryDir = topLibrary.substring(0, end);
|
|
|
| @@ -209,7 +209,7 @@ void DoMultitest(String filename,
|
|
|
| String directory = CreateMultitestDirectory(outputDir, testDir);
|
| Expect.isNotNull(directory);
|
| - String pathSep = new Platform().pathSeparator();
|
| + String pathSep = Platform.pathSeparator();
|
| int start = filename.lastIndexOf(pathSep) + 1;
|
| int end = filename.indexOf('.dart', start);
|
| String baseFilename = filename.substring(start, end);
|
|
|