Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Unified Diff: LayoutTests/http/tests/notifications/click-can-focus.html

Issue 896043004: Tests for WaitUntilObserver and focus/openining windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sw_client_focus_cleanup
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/notifications/click-can-focus.html
diff --git a/LayoutTests/http/tests/notifications/click-can-focus.html b/LayoutTests/http/tests/notifications/click-can-focus.html
new file mode 100644
index 0000000000000000000000000000000000000000..0b2dee669a46889673fb1b2f15f04a3b27e21a48
--- /dev/null
+++ b/LayoutTests/http/tests/notifications/click-can-focus.html
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <title>Notifications: notificationclick allows a service worker to focus.</title>
+ <script src="../resources/testharness.js"></script>
+ <script src="../resources/testharnessreport.js"></script>
+ <script src="../serviceworker/resources/test-helpers.js"></script>
+ </head>
+ <body>
+ <script>
+ if (window.testRunner)
+ testRunner.grantWebNotificationPermission(location.origin, true);
+
+ // Tests that when a serviceworker receives a click event, it can focus a
+ // client once in some timeframe after receiving the event.
+ service_worker_test(
+ 'resources/serviceworker-click-can-focus.js',
+ 'notificationclick allows SW to focus a client.');
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698