Chromium Code Reviews| Index: tests/standalone/full_coverage_test.dart |
| diff --git a/tests/standalone/full_coverage_test.dart b/tests/standalone/full_coverage_test.dart |
| index 9eab81d766886ea63d0a4205731d77116e825a15..7a3ebd341ecc284c6acd4688d8f1ca13cfe40072 100644 |
| --- a/tests/standalone/full_coverage_test.dart |
| +++ b/tests/standalone/full_coverage_test.dart |
| @@ -15,7 +15,7 @@ import 'package:unittest/unittest.dart'; |
| final String coverageScript = |
| Platform.script.resolve('../../tools/full-coverage.dart').toFilePath(); |
| -final String packageRoot = Platform.packageRoot; |
| +String packageRoot; |
| final List dartBaseArgs = ['--package-root=${packageRoot}', '--checked',]; |
| // With line numbers starting at 0, the list of hits can be understood as |
| @@ -210,9 +210,11 @@ testCoverage(String programDir, String programPath, descriptor, |
| } |
| -main() { |
| +main() async { |
| String testingDirectory; |
| + packageRoot = (await Platform.packageRoot).toFilePath(); |
|
Lasse Reichstein Nielsen
2015/09/22 09:48:25
May be null, use "?.toFilePath()".
The test may n
|
| + |
| setUp(() { |
| testingDirectory = prepareEnv(); |
| }); |