Ensure webviews get reset after spec finishes

This commit is contained in:
Kevin Sawicki 2016-09-30 09:55:24 -07:00
parent 4a186069d9
commit 3f390c6849

View file

@ -17,9 +17,10 @@ describe('<webview> tag', function () {
})
afterEach(function () {
if (document.body.contains(webview)) {
document.body.removeChild(webview)
if (!document.body.contains(webview)) {
document.body.appendChild(webview)
}
webview.remove()
if (w) {
w.destroy()
w = null