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 2371140c5b51f52e01270ad5f390506054c72b09..3611976c629fda25824fa1f24f4159118aa4344b 100644 |
| --- a/tools/testing/dart/test_suite.dart |
| +++ b/tools/testing/dart/test_suite.dart |
| @@ -1001,7 +1001,22 @@ class StandardTestSuite extends TestSuite { |
| dartWrapperFilename = '${htmlPath}_bootstrap.dart'; |
| compiledDartWrapperFilename = '$dartWrapperFilename.js'; |
| } else { |
| - htmlPath = customHtmlPath; |
| + htmlPath = '$tempDir/test.html'; |
| + dartWrapperFilename = filePath.toNativePath(); |
|
ahe
2013/09/25 08:37:06
It's really hard for ricow@ and kustermann@ to kee
|
| + |
| + var htmlContents = customHtml.readAsStringSync(); |
| + if (compiler == 'none') { |
| + htmlContents = htmlContents.replaceAll('%TEST_SCRIPTS%', |
| + '<script type="application/dart" ' |
| + 'src="${_createUrlPathFromFile(filePath)}"></script>\n' |
| + '<script type="text/javascript" ' |
| + 'src="/packages/browser/dart.js"></script>'); |
| + } else { |
| + htmlContents = htmlContents.replaceAll('%TEST_SCRIPTS%', |
| + '<script src="$nameNoExt.js"></script>'); |
| + compiledDartWrapperFilename = '$tempDir/$nameNoExt.js'; |
|
kustermann
2013/09/25 09:28:27
Recently dart2js has been changed to emit a "test.
|
| + } |
| + new File(htmlPath).writeAsStringSync(htmlContents); |
| } |
| } else { |
| htmlPath = '$tempDir/test.html'; |