spec: Node integration should work after POST
This commit is contained in:
parent
50bfe9e335
commit
dddb598818
2 changed files with 18 additions and 0 deletions
10
spec/fixtures/pages/post.html
vendored
Normal file
10
spec/fixtures/pages/post.html
vendored
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<form id="form" action="d.html" method="post" accept-charset="utf-8">
|
||||||
|
<p><input type="submit" value="submit"></p>
|
||||||
|
</form>
|
||||||
|
<script type="text/javascript" charset="utf-8">
|
||||||
|
document.getElementById("form").submit();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -48,6 +48,14 @@ describe '<webview> tag', ->
|
||||||
webview.src = "file://#{fixtures}/pages/d.html"
|
webview.src = "file://#{fixtures}/pages/d.html"
|
||||||
document.body.appendChild webview
|
document.body.appendChild webview
|
||||||
|
|
||||||
|
it 'loads node symbols after POST navigation when set', (done) ->
|
||||||
|
webview.addEventListener 'console-message', (e) ->
|
||||||
|
assert.equal e.message, 'function object object'
|
||||||
|
done()
|
||||||
|
webview.setAttribute 'nodeintegration', 'on'
|
||||||
|
webview.src = "file://#{fixtures}/pages/post.html"
|
||||||
|
document.body.appendChild webview
|
||||||
|
|
||||||
# If the test is executed with the debug build on Windows, we will skip it
|
# If the test is executed with the debug build on Windows, we will skip it
|
||||||
# because native modules don't work with the debug build (see issue #2558).
|
# because native modules don't work with the debug build (see issue #2558).
|
||||||
if process.platform isnt 'win32' or
|
if process.platform isnt 'win32' or
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue