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

Side by Side Diff: LayoutTests/http/tests/notifications/click-document.html

Issue 1312623003: Flakyness: fix notifications/ tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@webmidi-flakyness
Patch Set: rebase Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Notifications: Simulating a click should call the onclick event.</tit le> 4 <title>Notifications: Simulating a click should call the onclick event.</tit le>
5 <script src="../resources/testharness.js"></script> 5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script> 6 <script src="../resources/testharnessreport.js"></script>
7 <script src="resources/test-helpers.js"></script> 7 <script src="resources/test-helpers.js"></script>
8 <script src="../resources/permissions-helper.js"></script>
8 </head> 9 </head>
9 <body> 10 <body>
10 <script> 11 <script>
11 // Tests that Document-bound notifications will have their onclick event 12 // Tests that Document-bound notifications will have their onclick event
12 // fired when they're being clicked on. When the test is being ran 13 // fired when they're being clicked on. When the test is being ran
13 // manually, grant Notification permission and click on the notification. 14 // manually, grant Notification permission and click on the notification.
14 if (window.testRunner) 15 PermissionsHelper.setPermission('notifications', 'granted').then(function( ) {
15 testRunner.setPermission('notifications', 'granted', location.origin, location.origin); 16 var script = document.createElement('script');
17 script.src = 'resources/click-event-test.js';
18 document.body.appendChild(script);
19 });
16 </script> 20 </script>
17 <script src="resources/click-event-test.js"></script>
18 </body> 21 </body>
19 </html> 22 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/http/tests/notifications/click-window-focus-document.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698