mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Ensure webviews get reset after spec finishes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user