fix: emit updated on NativeTheme on the UI thread to avoid DCHECK (#20137)
* fix: emit updated on NativeTheme on the UI thread to avoid DCHECK * Update atom_api_native_theme.cc * spec: wait a few ticks for async events to emit so that test events do not leak into each other
This commit is contained in:
parent
2b316f3843
commit
0e61709fa7
4 changed files with 31 additions and 12 deletions
|
@ -1,2 +1,4 @@
|
|||
export const ifit = (condition: boolean) => (condition ? it : it.skip)
|
||||
export const ifdescribe = (condition: boolean) => (condition ? describe : describe.skip)
|
||||
export const ifdescribe = (condition: boolean) => (condition ? describe : describe.skip)
|
||||
|
||||
export const delay = (time: number) => new Promise(r => setTimeout(r, time))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue