Ensure webviews get reset after spec finishes
This commit is contained in:
parent
4a186069d9
commit
3f390c6849
1 changed files with 3 additions and 2 deletions
|
@ -17,9 +17,10 @@ describe('<webview> tag', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
if (document.body.contains(webview)) {
|
if (!document.body.contains(webview)) {
|
||||||
document.body.removeChild(webview)
|
document.body.appendChild(webview)
|
||||||
}
|
}
|
||||||
|
webview.remove()
|
||||||
if (w) {
|
if (w) {
|
||||||
w.destroy()
|
w.destroy()
|
||||||
w = null
|
w = null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue