|
|
Add new layout tests for the Web Notification API.
This patch adds tests for the following scenarios:
* Notification.permission should default to "default".
* Notification.onshow() and Notification.onclose() should be called.
* Notification.onclick() should be called when it gets clicked on.
* Notification.tag should allow an existing notification to be replaced.
* Sandboxed iframes should influence notification inheritance behavior.
* Notifications can focus their opening window when it's in the background.
The expected output of "notifications-constructor-with-permission.html"
has been amended to reflect the updated output format.
Two tests have been updated to include the second argument to the
testRunner.grantWebNotificationPermission() call (whether to grant it).
BUG= 349015
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+298 lines, -3 lines) |
Patch |
 |
A |
LayoutTests/fast/notifications/notification-click.html
|
View
|
1
2
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/notifications/notification-click-expected.txt
|
View
|
1
2
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/notifications/notification-click-window-focus.html
|
View
|
1
2
3
|
1 chunk |
+49 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/notifications/notification-click-window-focus-expected.txt
|
View
|
1
2
3
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/notifications/notification-close.html
|
View
|
1
2
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/notifications/notification-close-expected.txt
|
View
|
1
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/notifications/notification-properties.html
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/notifications/notification-replace.html
|
View
|
1
2
3
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/notifications/notification-replace-expected.txt
|
View
|
1
2
3
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/notifications/notification-sandbox-permission.html
|
View
|
1
2
3
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/notifications/notification-sandbox-permission-expected.txt
|
View
|
1
2
3
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/notifications/notifications-constructor-with-permission.html
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/notifications/notifications-constructor-with-permission-expected.txt
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/notifications/notifications-permission-values.html
|
View
|
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/notifications/notifications-permission-values-expected.txt
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/notifications/resources/display-permission.html
|
View
|
1
2
3
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|