From 31b08a3ec68bac87b93a5b46bd1fa28e3e0ef6c0 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 10 Mar 2014 22:42:03 +0800 Subject: [PATCH] Update specs with new sandbox setting. --- spec/chromium-spec.coffee | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/spec/chromium-spec.coffee b/spec/chromium-spec.coffee index 91461a3e..f9be6307 100644 --- a/spec/chromium-spec.coffee +++ b/spec/chromium-spec.coffee @@ -25,12 +25,14 @@ describe 'chromium feature', -> assert.equal b.constructor.name, 'BrowserWindow' b.destroy() - describe 'iframe with sandbox attribute', -> - it 'can not modify parent', (done) -> - page = path.join fixtures, 'pages', 'change-parent.html' + describe 'iframe', -> + page = path.join fixtures, 'pages', 'change-parent.html' + + beforeEach -> global.changedByIframe = false - iframe = $('