Add spec for #70.

This commit is contained in:
Cheng Zhao 2013-08-29 11:40:07 +08:00
parent 19aa2b7979
commit e00d3d4b37
3 changed files with 52 additions and 0 deletions

9
spec/fixtures/api/unload.html vendored Normal file
View file

@ -0,0 +1,9 @@
<html>
<body>
<script type="text/javascript" charset="utf-8">
window.addEventListener('unload', function (e) {
require('fs').writeFileSync(__dirname + '/test', 'unload');
}, false);
</script>
</body>
</html>