| Index: test/io.dart
|
| diff --git a/test/io.dart b/test/io.dart
|
| index 9937140be7b7382e7e34caf421400e6c5d18203f..950e25370118ef390c0f133509f8ed52de17fd55 100644
|
| --- a/test/io.dart
|
| +++ b/test/io.dart
|
| @@ -8,11 +8,10 @@ import 'dart:io';
|
| import 'dart:mirrors';
|
|
|
| import 'package:path/path.dart' as p;
|
| +import 'package:unittest/src/util/io.dart';
|
|
|
| -/// The root directory of the `unittest` package.
|
| -final String packageDir = _computePackageDir();
|
| -String _computePackageDir() =>
|
| - p.dirname(p.dirname(_libraryPath(#unittest.test.io)));
|
| +/// The path to the root directory of the `unittest` package.
|
| +final String packageDir = p.dirname(p.dirname(libraryPath(#unittest.test.io)));
|
|
|
| /// Runs the unittest executable with the package root set properly.
|
| ProcessResult runUnittest(List<String> args, {String workingDirectory,
|
| @@ -39,12 +38,3 @@ ProcessResult runDart(List<String> args, {String workingDirectory,
|
| return Process.runSync(Platform.executable, allArgs,
|
| workingDirectory: workingDirectory, environment: environment);
|
| }
|
| -
|
| -/// Returns the path to the library named [libraryName].
|
| -///
|
| -/// The library name must be globally unique, or the wrong library path may be
|
| -/// returned.
|
| -String _libraryPath(Symbol libraryName) {
|
| - var lib = currentMirrorSystem().findLibrary(libraryName);
|
| - return p.fromUri(lib.uri);
|
| -}
|
|
|