Split test HTML file into separate ones
This commit is contained in:
parent
1d73e84a29
commit
edeac2f59e
5 changed files with 35 additions and 33 deletions
12
spec/fixtures/api/native-window-open-file.html
vendored
Normal file
12
spec/fixtures/api/native-window-open-file.html
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
<html>
|
||||
<body>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
const {ipcRenderer} = require("electron");
|
||||
const popup = window.open('native-window-open-child.html');
|
||||
popup.onload = () => {
|
||||
const content = popup.document.querySelector('h1').innerText;
|
||||
ipcRenderer.send('answer', content);
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue