Chromium Code Reviews| Index: tools/testing/dart/test_suite.dart |
| diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart |
| index 1df99ad1f4f660ac5557cad2f632e6ef0381ef30..1c69d0e552bba231ca29a5a8967ddf4ec6c6b730 100644 |
| --- a/tools/testing/dart/test_suite.dart |
| +++ b/tools/testing/dart/test_suite.dart |
| @@ -1121,7 +1121,20 @@ class StandardTestSuite extends TestSuite { |
| commands.add(_polymerDeployCommand( |
| customHtmlPath, tempDir, optionsFromFile)); |
| - htmlPath = '$tempDir/test/$nameNoExt.html'; |
| + // Find package's home dir, where pubspec.yaml is located. The |
| + // relative directory within the package will be part of the |
| + // entrypoint path. |
| + var homeDir = filePath; |
| + var pubspec = ''; |
| + do { |
| + homeDir = homeDir.directoryPath; |
| + if (homeDir.toString() == '/') { |
| + homeDir = dir; |
| + break; |
| + } |
| + pubspec = homeDir.append('pubspec.yaml').toNativePath(); |
| + } while (!new File(pubspec).existsSync()); |
|
kustermann
2014/01/29 20:48:40
There is already logic to do something similar. Pl
Siggi Cherem (dart-lang)
2014/01/29 22:15:07
Thanks. All set.
|
| + htmlPath = '$tempDir/${dir.relativeTo(homeDir)}/$nameNoExt.html'; |
|
kustermann
2014/01/29 20:48:40
I don't understand what the purpose of this is. Th
Siggi Cherem (dart-lang)
2014/01/29 22:15:07
Yes and no - it always supported putting the outpu
|
| dartWrapperFilename = '${htmlPath}_bootstrap.dart'; |
| compiledDartWrapperFilename = '$dartWrapperFilename.js'; |
| } else { |