test: drop now-empty remote runner (#35343)
* test: drop the now-empty remote runner from CI * move fixtures to spec-main * remove remote runner * fix stuff * remove global-paths hack * move ts-smoke to spec/ * fix test after merge * rename spec-main to spec * no need to ignore spec/node_modules twice * simplify spec-runner a little * no need to hash pj/yl twice * undo lint change to verify-mksnapshot.py * excessive .. * update electron_woa_testing.yml * don't search for test-results-remote.xml it is never produced now
This commit is contained in:
parent
e87c4015fe
commit
db7c92fd57
327 changed files with 950 additions and 1707 deletions
25
spec/fixtures/crash-cases/api-browser-destroy/index.js
vendored
Normal file
25
spec/fixtures/crash-cases/api-browser-destroy/index.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
const { app, BrowserWindow, BrowserView } = require('electron');
|
||||
const { expect } = require('chai');
|
||||
|
||||
function createWindow () {
|
||||
// Create the browser window.
|
||||
const mainWindow = new BrowserWindow({
|
||||
width: 800,
|
||||
height: 600,
|
||||
webPreferences: {
|
||||
nodeIntegration: true
|
||||
}
|
||||
});
|
||||
const view = new BrowserView();
|
||||
mainWindow.addBrowserView(view);
|
||||
view.webContents.destroy();
|
||||
view.setBounds({ x: 0, y: 0, width: 0, height: 0 });
|
||||
const bounds = view.getBounds();
|
||||
expect(bounds).to.deep.equal({ x: 0, y: 0, width: 0, height: 0 });
|
||||
view.setBackgroundColor('#56cc5b10');
|
||||
}
|
||||
|
||||
app.on('ready', () => {
|
||||
createWindow();
|
||||
setTimeout(() => app.quit());
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue