Skip to content

Commit

Permalink
Added onnxjs test, failing so skip for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
yusungsim committed Feb 8, 2024
1 parent a1df369 commit 36be043
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
21 changes: 21 additions & 0 deletions tests/online/onnxjs/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { delay } from '../../../dist/tests/test-utils.cjs'

export default async function test(analyser) {
const url = 'https://microsoft.github.io/onnxjs-demo/#/squeezenet'
const page = await analyser.start(url, { headless: true })

const beSelector = page.locator('div').filter({ hasText: /^GPU-WebGLarrow_drop_down$/ }).nth(1)
await beSelector.waitFor({state: 'visible'})

await beSelector.click()


const wasmOption = page.locator('div').filter({ hasText: /^CPU-WebAssembly$/ }).nth(1)
await wasmOption.waitFor({state: 'visible'})

await wasmOption.click()

await delay(10000)

return await analyser.stop()
}
3 changes: 2 additions & 1 deletion tests/run-tests.cts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ async function runOnlineTests(names: string[], options) {
'uarm', // doesn't work for js because string is too long
'image-convolute', // asm2wasm - f64-to-int is too large
'lichess', // failing test
'livesplit' // uses simd, filter for now
'livesplit', // uses simd, filter for now
'onnxjs', // failing test
]
names = names.filter((n) => !filter.includes(n))
let successfull = 0;
Expand Down

0 comments on commit 36be043

Please sign in to comment.