From 3f390c6849dd68f645f9fd26d02734c58481fc29 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 30 Sep 2016 09:55:24 -0700 Subject: [PATCH] Ensure webviews get reset after spec finishes --- spec/webview-spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/webview-spec.js b/spec/webview-spec.js index 33bd4154c93b..1eb14442adaa 100644 --- a/spec/webview-spec.js +++ b/spec/webview-spec.js @@ -17,9 +17,10 @@ describe(' 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