Add tests for did-change-theme-color event

This commit is contained in:
Brian R. Bondy 2015-12-22 17:16:31 -05:00
parent 11b2015535
commit 29b00ae0d6
5 changed files with 38 additions and 8 deletions

View file

@ -235,6 +235,22 @@ Returns:
Emitted when a result is available for
[`webContents.findInPage`](web-contents.md#webcontentsfindinpage) request.
### Event: 'media-started-playing'
Emitted when media starts playing.
### Event: 'media-paused'
Emitted when media is paused or done playing.
### Event: 'did-change-theme-color'
Emitted when a page's theme color changes. This is usually due to encountering a meta tag:
```html
<meta name='theme-color' content='#ff0000'>
```
## Instance Methods
The `webContents` object has the following instance methods:

View file

@ -647,4 +647,6 @@ Emitted when media is paused or done playing.
Emitted when a page's theme color changes. This is usually due to encountering a meta tag:
<meta name='theme-color' content='#ff0000'>
```html
<meta name='theme-color' content='#ff0000'>
```