From 509587eb8121b85038e2a2c17196a559bab31371 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 4 Oct 2019 09:30:44 +0900 Subject: [PATCH] test: close window before destroying browserView (#20411) --- spec-main/api-browser-view-spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec-main/api-browser-view-spec.ts b/spec-main/api-browser-view-spec.ts index 2977e75984fb..f8ca8d085963 100644 --- a/spec-main/api-browser-view-spec.ts +++ b/spec-main/api-browser-view-spec.ts @@ -27,11 +27,11 @@ describe('BrowserView module', () => { }) afterEach(async () => { + await closeWindow(w) + if (view) { view.destroy() } - - await closeWindow(w) }) describe('BrowserView.destroy()', () => {