Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / notifications / serviceworkerregistration-get-empty.html
blob6e389adae32105b1579d43ab9c854eb52ca3944d
1 <!doctype html>
2 <html>
3 <head>
4 <title>Notifications: ServiceWorkerRegistration.getNotifications() with no notifications.</title>
5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script>
7 <script src="../serviceworker/resources/test-helpers.js"></script>
8 <script src="resources/test-helpers.js"></script>
9 </head>
10 <body>
11 <script>
12 // Tests that the getNotifications() function when used in a document without
13 // notifications returns a promise that gets resolved with an empty array.
14 async_test(function(test) {
15 var scope = 'resources/scope/' + location.pathname,
16 script = 'resources/instrumentation-service-worker.js';
18 getActiveServiceWorkerWithMessagePort(test, script, scope).then(function(workerInfo) {
19 return workerInfo.registration.getNotifications();
20 }).then(function(notifications) {
21 assert_array_equals(notifications, []);
22 test.done();
23 }).catch(unreached_rejection(test));
25 }, 'ServiceWorkerRegistration.getNotifications() with no notifications.');
26 </script>
27 </body>
28 </html>