test: remove remote usage from chromium spec (#20568)

* test: move & expand webview -> window.open() opener tests

* remove remaining usage of 'protocol' from chromium-spec.js

* remove final usages of remote from chromium-spec

* remove import of window-helpers
This commit is contained in:
Jeremy Apthorp 2019-10-16 08:12:31 -07:00 committed by John Kleinschmidt
commit 221ce70699
4 changed files with 414 additions and 455 deletions

View file

@ -42,10 +42,3 @@ exports.closeWindow = async (window = null,
expect(windows).to.have.lengthOf(1)
}
}
exports.waitForWebContentsToLoad = async (webContents) => {
const didFinishLoadPromise = emittedOnce(webContents, 'did-finish-load')
if (webContents.isLoadingMainFrame()) {
await didFinishLoadPromise
}
}