From: Cheng Zhao Date: Tue, 15 Sep 2015 05:45:26 +0000 (+0800) Subject: spec: Check existence of webview before removing it X-Git-Tag: v0.32.3~2^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=357c7af3c0f8db8e0aab5fe00b889062c2452ba2;p=electron.git spec: Check existence of webview before removing it --- diff --git a/spec/webview-spec.coffee b/spec/webview-spec.coffee index ddb20339..e4b40c28 100644 --- a/spec/webview-spec.coffee +++ b/spec/webview-spec.coffee @@ -11,7 +11,7 @@ describe ' tag', -> beforeEach -> webview = new WebView afterEach -> - document.body.removeChild webview + document.body.removeChild(webview) if document.body.contains(webview) describe 'src attribute', -> it 'specifies the page to load', (done) ->