spec: node-integration should work in web-preferences

This commit is contained in:
Cheng Zhao 2015-09-10 15:30:41 +08:00
parent 6321a3898c
commit d4cbf7cadb
4 changed files with 40 additions and 10 deletions

5
spec/fixtures/api/blank.html vendored Normal file
View file

@ -0,0 +1,5 @@
<html>
<script type="text/javascript" charset="utf-8">
window;
</script>
</html>

View file

@ -3,7 +3,7 @@
<script type="text/javascript" charset="utf-8">
if (!window.test)
window.test = 'window'
require('ipc').send('preload', window.test);
require('ipc').send('answer', window.test);
</script>
</body>
</html>