Merge pull request #7429 from electron/webview-max-listeners

Ensure webviews get reset after spec finishes
This commit is contained in:
Kevin Sawicki 2016-09-30 10:43:27 -07:00 committed by GitHub
commit fb41474555

View file

@ -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