Skip to content

Instantly share code, notes, and snippets.

@p2004a
Created March 22, 2022 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p2004a/480d7248de118c86c204c785bd05a9fd to your computer and use it in GitHub Desktop.
Save p2004a/480d7248de118c86c204c785bd05a9fd to your computer and use it in GitHub Desktop.
not ok 247 BrowserWindow module focus and visibility BrowserWindow.show() should focus on window
AssertionError: expected false to equal true
at Context.<anonymous> (electron/spec-main/api-browser-window-spec.ts:699:34)
at processImmediate (node:internal/timers:464:21)
not ok 263 BrowserWindow module focus and visibility BrowserWindow.setFocusable() can set unfocusable window to focusable
Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/p2004a/Workspace/electron/e/src/electron/spec-main/api-browser-window-spec.ts)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7)
not ok 264 BrowserWindow module focus and visibility "after each" hook for "can set unfocusable window to focusable"
AssertionError: expected [ { setBounds: [Function],
_events:
{ blur: [Function],
focus: [Object],
show: [Function: visibilityChanged],
hide: [Function: visibilityChanged],
minimize: [Function: visibilityChanged],
maximize: [Function: visibilityChanged],
restore: [Function: visibilityChanged] },
_eventsCount: 7,
devToolsWebContents: [Getter],
focusOnWebView: [Function: focusOnWebView],
blurWebView: [Function: blurWebView],
isWebViewFocused: [Function: isWebViewFocused],
webContents:
{ isDestroyed: [Function: isDestroyed],
destroy: [Function: destroy],
getBackgroundThrottling: [Function: getBackgroundThrottling],
setBackgroundThrottling: [Function: setBackgroundThrottling],
getProcessId: [Function: getProcessId],
getOSProcessId: [Function: getOSProcessId],
equal: [Function: equal],
_loadURL: [Function: _loadURL],
reload: [Function: reload],
reloadIgnoringCache: [Function: reloadIgnoringCache],
downloadURL: [Function: downloadURL],
getURL: [Function: getURL],
getTitle: [Function: getTitle],
isLoading: [Function: isLoading],
isLoadingMainFrame: [Function: isLoadingMainFrame],
isWaitingForResponse: [Function: isWaitingForResponse],
stop: [Function: stop],
canGoBack: [Function: canGoBack],
goBack: [Function: goBack],
canGoForward: [Function: canGoForward],
goForward: [Function: goForward],
canGoToOffset: [Function: canGoToOffset],
goToOffset: [Function: goToOffset],
canGoToIndex: [Function: canGoToIndex],
goToIndex: [Function: goToIndex],
getActiveIndex: [Function: getActiveIndex],
clearHistory: [Function: clearHistory],
length: [Function: length],
isCrashed: [Function: isCrashed],
forcefullyCrashRenderer: [Function: forcefullyCrashRenderer],
setUserAgent: [Function: setUserAgent],
getUserAgent: [Function: getUserAgent],
savePage: [Function: savePage],
openDevTools: [Function: openDevTools],
closeDevTools: [Function: closeDevTools],
isDevToolsOpened: [Function: isDevToolsOpened],
isDevToolsFocused: [Function: isDevToolsFocused],
enableDeviceEmulation: [Function: enableDeviceEmulation],
disableDeviceEmulation: [Function: disableDeviceEmulation],
toggleDevTools: [Function: toggleDevTools],
inspectElement: [Function: inspectElement],
setIgnoreMenuShortcuts: [Function: setIgnoreMenuShortcuts],
setAudioMuted: [Function: setAudioMuted],
isAudioMuted: [Function: isAudioMuted],
isCurrentlyAudible: [Function: isCurrentlyAudible],
undo: [Function: undo],
redo: [Function: redo],
cut: [Function: cut],
copy: [Function: copy],
paste: [Function: paste],
pasteAndMatchStyle: [Function: pasteAndMatchStyle],
delete: [Function: delete],
selectAll: [Function: selectAll],
unselect: [Function: unselect],
replace: [Function: replace],
replaceMisspelling: [Function: replaceMisspelling],
findInPage: [Function: findInPage],
stopFindInPage: [Function: stopFindInPage],
focus: [Function: focus],
isFocused: [Function: isFocused],
sendInputEvent: [Function: sendInputEvent],
beginFrameSubscription: [Function: beginFrameSubscription],
endFrameSubscription: [Function: endFrameSubscription],
startDrag: [Function: startDrag],
attachToIframe: [Function: attachToIframe],
detachFromOuterFrame: [Function: detachFromOuterFrame],
isOffscreen: [Function: isOffscreen],
startPainting: [Function: startPainting],
stopPainting: [Function: stopPainting],
isPainting: [Function: isPainting],
setFrameRate: [Function: setFrameRate],
getFrameRate: [Function: getFrameRate],
invalidate: [Function: invalidate],
setZoomLevel: [Function: setZoomLevel],
getZoomLevel: [Function: getZoomLevel],
setZoomFactor: [Function: setZoomFactor],
getZoomFactor: [Function: getZoomFactor],
getType: [Function: getType],
_getPreloadPaths: [Function: _getPreloadPaths],
getLastWebPreferences: [Function: getLastWebPreferences],
getOwnerBrowserWindow: [Function: getOwnerBrowserWindow],
inspectServiceWorker: [Function: inspectServiceWorker],
inspectSharedWorker: [Function: inspectSharedWorker],
inspectSharedWorkerById: [Function: inspectSharedWorkerById],
getAllSharedWorkers: [Function: getAllSharedWorkers],
_print: [Function: _print],
_printToPDF: [Function: _printToPDF],
_setNextChildWebPreferences: [Function: _setNextChildWebPreferences],
addWorkSpace: [Function: addWorkSpace],
removeWorkSpace: [Function: removeWorkSpace],
showDefinitionForSelection: [Function: showDefinitionForSelection],
copyImageAt: [Function: copyImageAt],
capturePage: [Function: capturePage],
setEmbedder: [Function: setEmbedder],
setDevToolsWebContents: [Function: setDevToolsWebContents],
getNativeView: [Function: getNativeView],
incrementCapturerCount: [Function: incrementCapturerCount],
decrementCapturerCount: [Function: decrementCapturerCount],
isBeingCaptured: [Function: isBeingCaptured],
setWebRTCIPHandlingPolicy: [Function: setWebRTCIPHandlingPolicy],
getMediaSourceId: [Function: getMediaSourceId],
getWebRTCIPHandlingPolicy: [Function: getWebRTCIPHandlingPolicy],
takeHeapSnapshot: [Function: takeHeapSnapshot],
setImageAnimationPolicy: [Function: setImageAnimationPolicy],
_getProcessMemoryInfo: [Function: _getProcessMemoryInfo],
id: 152,
session: [Getter],
hostWebContents: [Getter],
devToolsWebContents: [Getter],
debugger: [Getter],
mainFrame: [Getter],
_windowOpenHandler: null,
_events: [Object],
_eventsCount: 13,
postMessage: [Function],
send: [Function],
_sendInternal: [Function],
sendToFrame: [Function],
_sendToFrameInternal: [Function],
insertCSS: [Function],
insertText: [Function],
removeInsertedCSS: [Function],
setVisualZoomLevelLimits: [Function],
executeJavaScript: [Function],
executeJavaScriptInIsolatedWorld: [Function],
printToPDF: [Function],
print: [Function],
getPrinters: [Function],
getPrintersAsync: [Function],
loadFile: [Function],
loadURL: [Function],
setWindowOpenHandler: [Function],
_callWindowOpenHandler: [Function],
_init: [Function],
_maxListeners: undefined,
setMaxListeners: [Function: setMaxListeners],
getMaxListeners: [Function: getMaxListeners],
emit: [Function: emit],
addListener: [Function: addListener],
on: [Function: addListener],
prependListener: [Function: prependListener],
once: [Function: once],
prependOnceListener: [Function: prependOnceListener],
removeListener: [Function: removeListener],
off: [Function: removeListener],
removeAllListeners: [Function: removeAllListeners],
listeners: [Function: listeners],
rawListeners: [Function: rawListeners],
listenerCount: [Function: listenerCount],
eventNames: [Function: eventNames] },
_init: [Function],
setTouchBar: [Function],
loadURL: [Function],
getURL: [Function],
loadFile: [Function],
reload: [Function],
send: [Function],
openDevTools: [Function],
closeDevTools: [Function],
isDevToolsOpened: [Function],
isDevToolsFocused: [Function],
toggleDevTools: [Function],
inspectElement: [Function],
inspectSharedWorker: [Function],
inspectServiceWorker: [Function],
showDefinitionForSelection: [Function],
capturePage: [Function],
getBackgroundThrottling: [Function],
setBackgroundThrottling: [Function],
destroy: [Function: destroy],
isDestroyed: [Function: isDestroyed],
setContentView: [Function: setContentView],
close: [Function: close],
focus: [Function: focus],
blur: [Function: blur],
isFocused: [Function: isFocused],
show: [Function: show],
showInactive: [Function: showInactive],
hide: [Function: hide],
isVisible: [Function: isVisible],
isEnabled: [Function: isEnabled],
setEnabled: [Function: setEnabled],
maximize: [Function: maximize],
unmaximize: [Function: unmaximize],
isMaximized: [Function: isMaximized],
minimize: [Function: minimize],
restore: [Function: restore],
isMinimized: [Function: isMinimized],
setFullScreen: [Function: setFullScreen],
isFullScreen: [Function: isFullScreen],
getBounds: [Function: getBounds],
isNormal: [Function: isNormal],
getNormalBounds: [Function: getNormalBounds],
setSize: [Function: setSize],
getSize: [Function: getSize],
setContentBounds: [Function: setContentBounds],
getContentBounds: [Function: getContentBounds],
setContentSize: [Function: setContentSize],
getContentSize: [Function: getContentSize],
setMinimumSize: [Function: setMinimumSize],
getMinimumSize: [Function: getMinimumSize],
setMaximumSize: [Function: setMaximumSize],
getMaximumSize: [Function: getMaximumSize],
setSheetOffset: [Function: setSheetOffset],
moveAbove: [Function: moveAbove],
moveTop: [Function: moveTop],
setResizable: [Function: setResizable],
isResizable: [Function: isResizable],
setMovable: [Function: setMovable],
isMovable: [Function: isMovable],
setMinimizable: [Function: setMinimizable],
isMinimizable: [Function: isMinimizable],
setMaximizable: [Function: setMaximizable],
isMaximizable: [Function: isMaximizable],
setFullScreenable: [Function: setFullScreenable],
isFullScreenable: [Function: isFullScreenable],
setClosable: [Function: setClosable],
isClosable: [Function: isClosable],
setAlwaysOnTop: [Function: setAlwaysOnTop],
isAlwaysOnTop: [Function: isAlwaysOnTop],
center: [Function: center],
setPosition: [Function: setPosition],
getPosition: [Function: getPosition],
setTitle: [Function: setTitle],
getTitle: [Function: getTitle],
accessibleTitle: '',
flashFrame: [Function: flashFrame],
setSkipTaskbar: [Function: setSkipTaskbar],
setSimpleFullScreen: [Function: setSimpleFullScreen],
isSimpleFullScreen: [Function: isSimpleFullScreen],
setKiosk: [Function: setKiosk],
isKiosk: [Function: isKiosk],
isTabletMode: [Function: isTabletMode],
setBackgroundColor: [Function: setBackgroundColor],
getBackgroundColor: [Function: getBackgroundColor],
setHasShadow: [Function: setHasShadow],
hasShadow: [Function: hasShadow],
setOpacity: [Function: setOpacity],
getOpacity: [Function: getOpacity],
setShape: [Function: setShape],
setRepresentedFilename: [Function: setRepresentedFilename],
getRepresentedFilename: [Function: getRepresentedFilename],
setDocumentEdited: [Function: setDocumentEdited],
isDocumentEdited: [Function: isDocumentEdited],
setIgnoreMouseEvents: [Function: setIgnoreMouseEvents],
setContentProtection: [Function: setContentProtection],
setFocusable: [Function: setFocusable],
isFocusable: [Function: isFocusable],
setMenu: [Function: setMenu],
removeMenu: [Function: removeMenu],
setParentWindow: [Function: setParentWindow],
setBrowserView: [Function: setBrowserView],
addBrowserView: [Function: addBrowserView],
removeBrowserView: [Function: removeBrowserView],
setTopBrowserView: [Function: setTopBrowserView],
getMediaSourceId: [Function: getMediaSourceId],
getNativeWindowHandle: [Function: getNativeWindowHandle],
setProgressBar: [Function: setProgressBar],
setOverlayIcon: [Function: setOverlayIcon],
setVisibleOnAllWorkspaces: [Function: setVisibleOnAllWorkspaces],
isVisibleOnAllWorkspaces: [Function: isVisibleOnAllWorkspaces],
setVibrancy: [Function: setVibrancy],
_setTouchBarItems: [Function: _setTouchBarItems],
_refreshTouchBarItem: [Function: _refreshTouchBarItem],
_setEscapeTouchBarItem: [Function: _setEscapeTouchBarItem],
setAutoHideMenuBar: [Function: setAutoHideMenuBar],
isMenuBarAutoHide: [Function: isMenuBarAutoHide],
setMenuBarVisibility: [Function: setMenuBarVisibility],
isMenuBarVisible: [Function: isMenuBarVisible],
setAspectRatio: [Function: setAspectRatio],
previewFile: [Function: previewFile],
closeFilePreview: [Function: closeFilePreview],
getContentView: [Function: getContentView],
getParentWindow: [Function: getParentWindow],
getChildWindows: [Function: getChildWindows],
getBrowserView: [Function: getBrowserView],
getBrowserViews: [Function: getBrowserViews],
isModal: [Function: isModal],
setThumbarButtons: [Function: setThumbarButtons],
setIcon: [Function: setIcon],
id: 125,
_maxListeners: undefined,
setMaxListeners: [Function: setMaxListeners],
getMaxListeners: [Function: getMaxListeners],
emit: [Function: emit],
addListener: [Function: addListener],
on: [Function: addListener],
prependListener: [Function: prependListener],
once: [Function: once],
prependOnceListener: [Function: prependOnceListener],
removeListener: [Function: removeListener],
off: [Function: removeListener],
removeAllListeners: [Function: removeAllListeners],
listeners: [Function: listeners],
rawListeners: [Function: rawListeners],
listenerCount: [Function: listenerCount],
eventNames: [Function: eventNames] } ] to have a length of 0 but got 1
at closeWindow (electron/spec-main/window-helpers.ts:34:31)
at Context.<anonymous> (electron/spec-main/api-browser-window-spec.ts:692:7)
not ok 439 BrowserWindow module BrowserWindow.unmaximize() should not change the size or position of a normal window
AssertionError: expected [ 880, 436 ] to deeply equal [ 880, 473 ]
at expectBoundsEqual (electron/spec-main/api-browser-window-spec.ts:33:30)
at Context.<anonymous> (electron/spec-main/api-browser-window-spec.ts:3633:7)
not ok 663 crashReporter module should send minidump when a node process crashes
Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/p2004a/Workspace/electron/e/src/electron/spec-main/api-crash-reporter-spec.ts)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7)
not ok 1052 powerMonitor when powerMonitor module is loaded with dbus mock should call Inhibit to delay suspend once a listener is added
AssertionError: expected [] to have a length of 1 but got 0
at Context.<anonymous> (electron/spec-main/api-power-monitor-spec.ts:65:50)
ok 1053 powerMonitor when powerMonitor module is loaded with dbus mock when PrepareForSleep(true) signal is sent by logind should emit "suspend" event
ok 1054 powerMonitor when powerMonitor module is loaded with dbus mock when PrepareForSleep(true) signal is sent by logind when PrepareForSleep(false) signal is sent by logind should emit "resume" event
not ok 1055 powerMonitor when powerMonitor module is loaded with dbus mock when PrepareForSleep(true) signal is sent by logind when PrepareForSleep(false) signal is sent by logind should have called Inhibit again
AssertionError: expected [] to have a length of 2 but got 0
at Context.<anonymous> (electron/spec-main/api-power-monitor-spec.ts:95:52)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
not ok 1056 powerMonitor when powerMonitor module is loaded with dbus mock when a listener is added to shutdown event "before all" hook
AssertionError: expected [] to have a length of 2 but got 0
at Context.<anonymous> (electron/spec-main/api-power-monitor-spec.ts:111:50)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
not ok 1218 shell module shell.trashItem() moves an item to the trash
Error: Failed to move item to trash
not ok 1653 font fallback should use Helvetica for sans-serif on Mac, and Arial on Windows and Linux
AssertionError: expected 'Liberation Sans' to equal 'DejaVu Sans'
at Context.<anonymous> (electron/spec-main/chromium-spec.ts:1540:38)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment