test: tsify more web contents specs (#19969)
* test: tsify more WebContents specs * getFocusedWebContents * setDevToolsWebContents, isFocused, isCurrentlyAudible * getWebPreferences, openDevTools * before-input-event * zoom-changed * sendInputEvent * insertCSS * startDrag * focus, getOSProcessId * zoom api * more closeAllWindows * fix detached dev tools test * fix zoom-changed test * compare the correct kind of id 🤦♂️ * 'fix' openDevTools test to wait for multiple focus events * fix tests? 🤞 * use request instead of blur to detect openExternal success * try not timing out the keychain for testing * use blur event on mac, sigh * oh, right, still gotta open an actual url
This commit is contained in:
parent
654338693f
commit
805a55099b
8 changed files with 760 additions and 718 deletions
1
spec-main/ambient.d.ts
vendored
1
spec-main/ambient.d.ts
vendored
|
@ -16,6 +16,7 @@ declare namespace Electron {
|
|||
|
||||
interface WebContents {
|
||||
getOwnerBrowserWindow(): BrowserWindow;
|
||||
getWebPreferences(): any;
|
||||
}
|
||||
|
||||
interface Session {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue