Index: LayoutTests/http/tests/serviceworker/chromium/windowclient-focus.html |
diff --git a/LayoutTests/http/tests/serviceworker/chromium/windowclient-focus.html b/LayoutTests/http/tests/serviceworker/chromium/windowclient-focus.html |
index be971fec68439bd8f6f001f30c3ce094055c542d..31d627acf2943a96ecd52bd19f1734cee8748a5f 100644 |
--- a/LayoutTests/http/tests/serviceworker/chromium/windowclient-focus.html |
+++ b/LayoutTests/http/tests/serviceworker/chromium/windowclient-focus.html |
@@ -7,10 +7,8 @@ |
// This test is using testRunner to grant itself the notification permission and |
// to simulate a click on a notification. A couple of changes would allow it to |
// be run as a manual test by other browser vendors. |
-if (window.testRunner) { |
+if (window.testRunner) |
testRunner.setPermission('notifications', 'granted', location.origin, location.origin); |
- testRunner.grantWebNotificationPermission(location.origin, true); |
-} |
var t = async_test('WindowClient.focus() behaved as expected'); |
t.step(function() { |