mirror of
https://github.com/electron/electron.git
synced 2026-02-19 03:14:51 -05:00
test: fix flaky BrowserView test (#49316)
* test: fix flaky BrowserWindow test * fix: improved as per review
This commit is contained in:
@@ -90,7 +90,7 @@ describe('BrowserView module', () => {
|
||||
w.show();
|
||||
w.setBounds(display.bounds);
|
||||
w.setBackgroundColor(WINDOW_BACKGROUND_COLOR);
|
||||
await w.loadURL('about:blank');
|
||||
await w.loadURL('data:text/html,<html></html>');
|
||||
|
||||
view = new BrowserView();
|
||||
view.setBounds(display.bounds);
|
||||
@@ -109,7 +109,7 @@ describe('BrowserView module', () => {
|
||||
w.show();
|
||||
w.setBounds(display.bounds);
|
||||
w.setBackgroundColor(WINDOW_BACKGROUND_COLOR);
|
||||
await w.loadURL('about:blank');
|
||||
await w.loadURL('data:text/html,<html></html>');
|
||||
|
||||
view = new BrowserView();
|
||||
view.setBounds(display.bounds);
|
||||
|
||||
Reference in New Issue
Block a user