test: migrate to helpers & disabled tests list (#37513)
* test: migrate to helpers & disabled tests list * can't disable a test suite * correct condition * address review comments
This commit is contained in:
parent
58f3c0ee37
commit
b8a21dbcd7
20 changed files with 95 additions and 117 deletions
|
@ -109,13 +109,9 @@ ifdescribe(process.platform !== 'linux')('document.visibilityState', () => {
|
|||
await once(ipcMain, 'visibility-change-visible');
|
||||
});
|
||||
|
||||
describe('on platforms that support occlusion detection', () => {
|
||||
ifdescribe(process.platform === 'darwin')('on platforms that support occlusion detection', () => {
|
||||
let child: cp.ChildProcess;
|
||||
|
||||
before(function () {
|
||||
if (process.platform !== 'darwin') this.skip();
|
||||
});
|
||||
|
||||
const makeOtherWindow = (opts: { x: number; y: number; width: number; height: number; }) => {
|
||||
child = cp.spawn(process.execPath, [path.resolve(__dirname, 'fixtures', 'chromium', 'other-window.js'), `${opts.x}`, `${opts.y}`, `${opts.width}`, `${opts.height}`]);
|
||||
return new Promise<void>(resolve => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue