Update specs to match the documents.
This commit is contained in:
parent
893309aa8a
commit
75a24a2e67
2 changed files with 21 additions and 2 deletions
13
spec/fixtures/api/close-beforeunload-empty-string.html
vendored
Normal file
13
spec/fixtures/api/close-beforeunload-empty-string.html
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
<html>
|
||||
<body>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
window.onbeforeunload = function() {
|
||||
setTimeout(function() {
|
||||
require('remote').getCurrentWindow().emit('onbeforeunload');
|
||||
}, 0);
|
||||
return '';
|
||||
}
|
||||
window.close();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue