| Index: LayoutTests/http/tests/notifications/click-window-focus-document.html
|
| diff --git a/LayoutTests/http/tests/notifications/click-window-focus-document.html b/LayoutTests/http/tests/notifications/click-window-focus-document.html
|
| index 3b7bcfc95d887b617ff29675c8dc24d703a39723..b3124460fc102ba9a957c3ad0c8c255a09f236b8 100644
|
| --- a/LayoutTests/http/tests/notifications/click-window-focus-document.html
|
| +++ b/LayoutTests/http/tests/notifications/click-window-focus-document.html
|
| @@ -11,8 +11,9 @@
|
| // their onclick event. When the test is being ran manually, grant
|
| // Notification permission and click on the notification.
|
| if (window.testRunner) {
|
| - testRunner.setCanOpenWindows();
|
| + testRunner.setCanOpenWindows();
|
| testRunner.setCloseRemainingWindowsWhenComplete();
|
| + testRunner.setPermission('notifications', 'granted', location.origin, location.origin);
|
| testRunner.grantWebNotificationPermission(location.origin, true);
|
| }
|
|
|
| @@ -38,7 +39,7 @@
|
| notification.addEventListener('click', function() {
|
| window.focus();
|
| });
|
| -
|
| +
|
| notification.addEventListener('error', function() {
|
| assert_unreached('The error event should not be thrown.');
|
| });
|
| @@ -47,4 +48,4 @@
|
| </script>
|
| <script src="resources/click-focus-test.js"></script>
|
| </body>
|
| -</html>
|
| +</html>
|
|
|