chore(windows): fix the Dart e2e/benchmark tasks
This commit is contained in:
parent
8b685466f5
commit
65769699b0
|
@ -62,7 +62,7 @@ var BROWSER_CAPS = {
|
|||
browserName: 'chrome',
|
||||
chromeOptions: mergeInto(CHROME_OPTIONS, {
|
||||
'mobileEmulation': CHROME_MOBILE_EMULATION,
|
||||
'binary': process.env.DARTIUM
|
||||
'binary': process.env.DARTIUM_BIN
|
||||
}),
|
||||
loggingPrefs: {
|
||||
performance: 'ALL',
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue