diff --git a/spec/chromium-spec.coffee b/spec/chromium-spec.coffee index 5899f9260..d433672cb 100644 --- a/spec/chromium-spec.coffee +++ b/spec/chromium-spec.coffee @@ -65,3 +65,19 @@ describe 'chromium feature', -> assert.equal event.data, message done() worker.port.postMessage message + + describe 'iframe', -> + iframe = null + + beforeEach -> + iframe = document.createElement 'iframe' + + afterEach -> + document.body.removeChild iframe + + it 'does not have node integration', (done) -> + iframe.src = "file://#{fixtures}/pages/set-global.html" + document.body.appendChild iframe + iframe.onload = -> + assert.equal iframe.contentWindow.test, 'undefined undefined undefined' + done() diff --git a/spec/fixtures/pages/set-global.html b/spec/fixtures/pages/set-global.html new file mode 100644 index 000000000..70d7cdc53 --- /dev/null +++ b/spec/fixtures/pages/set-global.html @@ -0,0 +1,7 @@ + +
+ + +