Add test for native addon after reload
This commit is contained in:
parent
526086d900
commit
349ea3a15a
2 changed files with 17 additions and 2 deletions
4
spec/fixtures/api/native-window-open.html
vendored
4
spec/fixtures/api/native-window-open.html
vendored
|
@ -15,6 +15,10 @@
|
|||
const content = popup.document.querySelector('h1').innerText;
|
||||
ipcRenderer.send('answer', content);
|
||||
};
|
||||
},
|
||||
'native-addon': () => {
|
||||
const runas = require('runas');
|
||||
ipcRenderer.send('answer', typeof runas);
|
||||
}
|
||||
}
|
||||
const test = location.hash.slice(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue