|
@@ -2,9 +2,12 @@ const assert = require('assert')
|
|
|
const path = require('path')
|
|
|
const http = require('http')
|
|
|
const url = require('url')
|
|
|
-const {app, session, getGuestWebContents, ipcMain, BrowserWindow, webContents} = require('electron').remote
|
|
|
+const {remote} = require('electron')
|
|
|
+const {app, session, getGuestWebContents, ipcMain, BrowserWindow, webContents} = remote
|
|
|
const {closeWindow} = require('./window-helpers')
|
|
|
|
|
|
+const isCI = remote.getGlobal('isCi')
|
|
|
+
|
|
|
describe('<webview> tag', function () {
|
|
|
this.timeout(3 * 60 * 1000)
|
|
|
|
|
@@ -449,7 +452,9 @@ describe('<webview> tag', function () {
|
|
|
typeofArrayPush: 'number',
|
|
|
typeofFunctionApply: 'boolean',
|
|
|
typeofPreloadExecuteJavaScriptProperty: 'number',
|
|
|
- typeofOpenedWindow: 'object'
|
|
|
+ typeofOpenedWindow: 'object',
|
|
|
+ documentHidden: isCI,
|
|
|
+ documentVisibilityState: isCI ? 'hidden' : 'visible'
|
|
|
}
|
|
|
})
|
|
|
done()
|