Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 importScripts('../../serviceworker/resources/worker-testharness.js'); | |
| 2 importScripts('/resources/testharness-helpers.js'); | |
|
Michael van Ouwerkerk
2015/02/16 18:16:09
nit: can we use a relative url here?
Peter Beverloo
2015/02/16 18:23:57
Done.
| |
| 3 | |
| 4 test(function() { | |
| 5 assert_true('Notification' in self); | |
| 6 | |
| 7 assert_throws({ name: 'TypeError' }, function() { | |
| 8 new Notification(); | |
| 9 }); | |
| 10 | |
| 11 }, 'Constructing a Notification object in a Service Worker throws.'); | |
| OLD | NEW |