ci: use CircleCI hosted macOS arm64 runners for testing (#41654)
* ci: use CircleCI hosted macOS arm64 runners for testing
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
* test: disable transparency tests on macOS arm64 (#41580)
(cherry picked from commit 6cb84ddbfb
)
---------
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
parent
516f6d0a40
commit
21341a56a7
5 changed files with 20 additions and 20 deletions
|
@ -2511,18 +2511,18 @@ describe('webContents module', () => {
|
|||
it('emits when moveTo is called', async () => {
|
||||
const w = new BrowserWindow({ show: false });
|
||||
w.loadURL('about:blank');
|
||||
w.webContents.executeJavaScript('window.moveTo(100, 100)', true);
|
||||
w.webContents.executeJavaScript('window.moveTo(50, 50)', true);
|
||||
const [, rect] = await once(w.webContents, 'content-bounds-updated') as [any, Electron.Rectangle];
|
||||
const { width, height } = w.getBounds();
|
||||
expect(rect).to.deep.equal({
|
||||
x: 100,
|
||||
y: 100,
|
||||
x: 50,
|
||||
y: 50,
|
||||
width,
|
||||
height
|
||||
});
|
||||
await new Promise(setImmediate);
|
||||
expect(w.getBounds().x).to.equal(100);
|
||||
expect(w.getBounds().y).to.equal(100);
|
||||
expect(w.getBounds().x).to.equal(50);
|
||||
expect(w.getBounds().y).to.equal(50);
|
||||
});
|
||||
|
||||
it('emits when resizeTo is called', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue