spec: Check existence of webview before removing it

This commit is contained in:
Cheng Zhao 2015-09-15 13:45:26 +08:00
parent 817363b955
commit 357c7af3c0

View file

@ -11,7 +11,7 @@ describe '<webview> 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) ->