Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / notifications / close-document.html
blob261457a63ca0726022390f6f2eac43629f5067bd
1 <!doctype html>
2 <html>
3 <head>
4 <title>Notifications: Programatically closing a notification should fire the onclose event.</title>
5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script>
7 <script src="resources/test-helpers.js"></script>
8 <script src="../resources/permissions-helper.js"></script>
9 </head>
10 <body>
11 <script>
12 // Tests that Document-bound notifications will fire the onclose event
13 // when they have their close() method called. When the test is being ran
14 // manually, grant Notification permission first.
15 PermissionsHelper.setPermission('notifications', 'granted').then(function() {
16 var script = document.createElement('script');
17 script.src = 'resources/close-event-test.js';
18 document.body.appendChild(script);
19 });
20 </script>
21 </body>
22 </html>