| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Notifications: ServiceWorkerRegistration.showNotification().</title> | 4 <title>Notifications: ServiceWorkerRegistration.showNotification().</title> |
| 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="../serviceworker/resources/test-helpers.js"></script> | 7 <script src="../serviceworker/resources/test-helpers.js"></script> |
| 8 </head> | 8 </head> |
| 9 <body> | 9 <body> |
| 10 <script> | 10 <script> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 assert_equals(error.message, 'No notification permission has b
een granted for this origin.'); | 33 assert_equals(error.message, 'No notification permission has b
een granted for this origin.'); |
| 34 test.done(); | 34 test.done(); |
| 35 }); | 35 }); |
| 36 | 36 |
| 37 }).catch(unreached_rejection(test)); | 37 }).catch(unreached_rejection(test)); |
| 38 | 38 |
| 39 }, 'showNotification() must reject if no Web Notification permission has b
een granted.'); | 39 }, 'showNotification() must reject if no Web Notification permission has b
een granted.'); |
| 40 </script> | 40 </script> |
| 41 </body> | 41 </body> |
| 42 </html> | 42 </html> |
| OLD | NEW |