test: clean up some stale code in renderer spec runner (#21384)
* test: clean up some stale code in renderer spec runner * remove jquery from spec * remove extraneous close tag * Revert "remove jquery from spec" This reverts commit 7b885c8ca807e15bad3b7bf94691eee3c53d0a8d. * re-clean-up html * don't highlight tags * update session docs; clear cache on boot * clear user-data-dir before running tests
This commit is contained in:
parent
b57d218466
commit
53957d47d6
5 changed files with 17 additions and 73 deletions
|
@ -4,6 +4,7 @@ const http = require('http')
|
|||
const url = require('url')
|
||||
const { ipcRenderer } = require('electron')
|
||||
const { emittedOnce, waitForEvent } = require('./events-helpers')
|
||||
const { ifdescribe, ifit } = require('./spec-helpers')
|
||||
|
||||
const features = process.electronBinding('features')
|
||||
const nativeModulesEnabled = process.env.ELECTRON_SKIP_NATIVE_MODULE_TESTS
|
||||
|
@ -469,7 +470,7 @@ describe('<webview> tag', function () {
|
|||
})
|
||||
})
|
||||
|
||||
it('can disable the remote module', async () => {
|
||||
ifit(features.isRemoteModuleEnabled())('can disable the remote module', async () => {
|
||||
const message = await startLoadingWebViewAndWaitForMessage(webview, {
|
||||
preload: `${fixtures}/module/preload-disable-remote.js`,
|
||||
src: `file://${fixtures}/api/blank.html`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue