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 ->
|
beforeEach ->
|
||||||
webview = new WebView
|
webview = new WebView
|
||||||
afterEach ->
|
afterEach ->
|
||||||
document.body.removeChild webview
|
document.body.removeChild(webview) if document.body.contains(webview)
|
||||||
|
|
||||||
describe 'src attribute', ->
|
describe 'src attribute', ->
|
||||||
it 'specifies the page to load', (done) ->
|
it 'specifies the page to load', (done) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue