test: move some BrowserWindow specs to the main process (#19182)
* test: move some BrowserWindow specs to the main process * uncomment cross-site test * move more tests * re-enable, refactor and move visibilitychange specs * move new-window event tests and re-enable them on mac * move max/minimize event tests * move modal tests * move beginFrameSubscription tests * move savePage test * move BrowserWindow options argument is optional test * move restore, unmaximize, fullscreen tests * move parent window tests * don't wait for show event on windows (#8664) * add debugging logs to fullscreen tests * more debugging on windows * explicitly destroy browserviews to prevent crash during gc * only await show on darwin * more event timing fixes * disable max/minimize event tests on linux, since they're broken on CI
This commit is contained in:
parent
7249b25868
commit
27599a851f
7 changed files with 1474 additions and 1677 deletions
|
@ -218,14 +218,12 @@ int SystemPreferences::DoSubscribeNotification(
|
|||
|
||||
if (user_info) {
|
||||
copied_callback.Run(
|
||||
base::SysNSStringToUTF8(notification.name),
|
||||
*user_info,
|
||||
base::SysNSStringToUTF8(notification.name), *user_info,
|
||||
object);
|
||||
} else {
|
||||
copied_callback.Run(
|
||||
base::SysNSStringToUTF8(notification.name),
|
||||
base::DictionaryValue(),
|
||||
object);
|
||||
base::DictionaryValue(), object);
|
||||
}
|
||||
}];
|
||||
return request_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue