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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/http/tests/notifications/click-window-focus-document.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/notifications/click-document.html
diff --git a/LayoutTests/http/tests/notifications/click-document.html b/LayoutTests/http/tests/notifications/click-document.html
index 98341f6088884b2945523cd4a3882dcdb10939f5..d0aaf4b95574222759b6a01cd250f88eabad3708 100644
--- a/LayoutTests/http/tests/notifications/click-document.html
+++ b/LayoutTests/http/tests/notifications/click-document.html
@@ -5,15 +5,18 @@
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="resources/test-helpers.js"></script>
+ <script src="../resources/permissions-helper.js"></script>
</head>
<body>
<script>
// Tests that Document-bound notifications will have their onclick event
// fired when they're being clicked on. When the test is being ran
// manually, grant Notification permission and click on the notification.
- if (window.testRunner)
- testRunner.setPermission('notifications', 'granted', location.origin, location.origin);
+ PermissionsHelper.setPermission('notifications', 'granted').then(function() {
+ var script = document.createElement('script');
+ script.src = 'resources/click-event-test.js';
+ document.body.appendChild(script);
+ });
</script>
- <script src="resources/click-event-test.js"></script>
</body>
</html>
« 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