Skip to content

Commit 5462d6b

Browse files
committed
test(itk-wasm): pthreadSupportAvailable browser test
1 parent 195553e commit 5462d6b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { demoServer, pipelineBaseUrl, pipelineWorkerUrl } from '../common'
2+
3+
describe('pthreadSupportAvailable', () => {
4+
beforeEach(() => {
5+
cy.visit(demoServer)
6+
cy.window().then(async (win) => {
7+
const itk = win.itk
8+
itk.setPipelineWorkerUrl(pipelineWorkerUrl)
9+
itk.setPipelinesBaseUrl(pipelineBaseUrl)
10+
})
11+
})
12+
13+
it('reports whether pthread support is available', () => {
14+
cy.window().then(async (win) => {
15+
const itk = win.itk
16+
17+
const pthreadSupportAvailable = itk.pthreadSupportAvailable()
18+
expect(pthreadSupportAvailable).to.equal(false)
19+
})
20+
})
21+
})

0 commit comments

Comments
 (0)