chore(windows): fix the Dart e2e/benchmark tasks

This commit is contained in:
Marc Laval
2015-06-25 16:56:59 +02:00
parent 8b685466f5
commit 65769699b0
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ function replaceScriptTagInHtml(placeholder: string, relativePath: string): stri
if (relativePath.match(/^benchmarks/)) {
scriptTags += '<script src="url_params_to_form.js" type="text/javascript"></script>\n';
}
var scriptName = relativePath.replace(/.*\/([^/]+)\.html$/, '$1.dart');
var scriptName = relativePath.replace(/\\/g, '/').replace(/.*\/([^/]+)\.html$/, '$1.dart');
scriptTags += '<script src="' + scriptName + '" type="application/dart"></script>\n' +
'<script src="packages/browser/dart.js" type="text/javascript"></script>';
return scriptTags;