diff --git a/protractor-shared.js b/protractor-shared.js index ec81ed3a11..4cbccfc4fa 100644 --- a/protractor-shared.js +++ b/protractor-shared.js @@ -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', diff --git a/tools/broccoli/trees/dart_tree.ts b/tools/broccoli/trees/dart_tree.ts index 11135e2db3..6a20361a8c 100644 --- a/tools/broccoli/trees/dart_tree.ts +++ b/tools/broccoli/trees/dart_tree.ts @@ -29,7 +29,7 @@ function replaceScriptTagInHtml(placeholder: string, relativePath: string): stri if (relativePath.match(/^benchmarks/)) { scriptTags += '\n'; } - var scriptName = relativePath.replace(/.*\/([^/]+)\.html$/, '$1.dart'); + var scriptName = relativePath.replace(/\\/g, '/').replace(/.*\/([^/]+)\.html$/, '$1.dart'); scriptTags += '\n' + ''; return scriptTags;