electron/spec/fixtures/module/access-blink-apis.js
Samuel Attard 50a4a8e9c3
spec: add test for syncronous access to blink APIs (#14637)
This test should ensure we catch a regression of #13787
2018-09-25 10:40:15 +12:00

17 lines
365 B
JavaScript

window.delayed = true
global.getGlobalNames = () => {
return Object.getOwnPropertyNames(global)
.filter(key => typeof global[key] === 'function')
.filter(key => key !== 'WebView')
.sort()
}
const atPreload = global.getGlobalNames()
window.addEventListener('load', () => {
window.test = {
atPreload,
atLoad: global.getGlobalNames()
}
})