Skip to content

Commit

Permalink
[js/web] fix karma launch with chrome headless (#8998)
Browse files Browse the repository at this point in the history
  • Loading branch information
fs-eire authored Sep 8, 2021
1 parent ec63d10 commit 2e8792c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/web/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module.exports = function (config) {
browserSocketTimeout: 60000,
hostname: getMachineIpAddress(),
customLaunchers: {
ChromeTest: { base: 'Chrome', flags: ['--window-size=1,1', '--enable-features=SharedArrayBuffer'] },
ChromeTest: { base: 'ChromeHeadless', flags: ['--window-size=1,1', '--enable-features=SharedArrayBuffer'] },
ChromeDebug: { debug: true, base: 'Chrome', flags: ['--remote-debugging-port=9333', '--enable-features=SharedArrayBuffer'] },

//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ jobs:
workingDirectory: '$(Build.SourcesDirectory)\js\web'
displayName: 'Run ort-web tests - unpacked mode'
- script: |
npm test -- --webgl-texture-pack-mode -b=webgl
npm test -- --webgl-texture-pack-mode -b=webgl
workingDirectory: '$(Build.SourcesDirectory)\js\web'
displayName: 'Run ort-web tests - packed mode'
- script: |
Expand Down

0 comments on commit 2e8792c

Please sign in to comment.