test: remove a bunch of usage of the remote module (#21119)
This commit is contained in:
parent
4f1536479e
commit
26ecf63ab4
22 changed files with 124 additions and 125 deletions
3
spec/fixtures/pages/window-open-size.html
vendored
3
spec/fixtures/pages/window-open-size.html
vendored
|
@ -1,8 +1,7 @@
|
|||
<html>
|
||||
<body>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
var size = require('electron').remote.getCurrentWindow().getSize();
|
||||
window.opener.postMessage('size: ' + size[0] + ' ' + size[1], '*')
|
||||
window.opener.postMessage('size: ' + outerWidth + ' ' + outerHeight, '*')
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue