Skip to content
Snippets Groups Projects
Commit 20b53981 authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: await raf for schedule draw call

chore: update checklist
parent d4b93cf1
No related branches found
No related tags found
No related merge requests found
...@@ -48,4 +48,11 @@ ...@@ -48,4 +48,11 @@
- [ ] high res hoc1, hoc2, hoc3, lam1-6 are visible - [ ] high res hoc1, hoc2, hoc3, lam1-6 are visible
- [ ] Waxholm - [ ] Waxholm
- [ ] v4 are visible - [ ] v4 are visible
- [ ] on hover, show correct region name(s) - [ ] on hover, show correct region name(s)
\ No newline at end of file
## saneURL
- [ ] [saneUrl](https://siibra-explorer.apps.hbp.eu/staging/saneUrl/bigbrainGreyWhite) redirects to big brain
- [ ] [saneUrl](https://siibra-explorer.apps.hbp.eu/staging/saneUrl/julichbrain) redirects to julich brain (colin 27)
- [ ] [saneUrl](https://siibra-explorer.apps.hbp.eu/staging/saneUrl/whs4) redirects to waxholm v4
- [ ] [saneUrl](https://siibra-explorer.apps.hbp.eu/staging/saneUrl/allen2017) redirects to allen 2017
- [ ] [saneUrl](https://siibra-explorer.apps.hbp.eu/staging/saneUrl/mebrains) redirects to monkey
...@@ -329,6 +329,7 @@ describe('> viewerCtrlCmp.component.ts', () => { ...@@ -329,6 +329,7 @@ describe('> viewerCtrlCmp.component.ts', () => {
it('> calls schedulRedraw', async () => { it('> calls schedulRedraw', async () => {
await fixture.componentInstance['toggleParcVsbl']() await fixture.componentInstance['toggleParcVsbl']()
await new Promise(rs => requestAnimationFrame(rs))
expect(mockNehubaViewer.nehubaViewer.ngviewer.display.scheduleRedraw).toHaveBeenCalled() expect(mockNehubaViewer.nehubaViewer.ngviewer.display.scheduleRedraw).toHaveBeenCalled()
}) })
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment