spec: Check existence of webview before removing it
This commit is contained in:
parent
817363b955
commit
357c7af3c0
1 changed files with 1 additions and 1 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue