OLD | NEW |
---|---|
(Empty) | |
1 importScripts('../../serviceworker/resources/worker-testharness.js'); | |
2 importScripts('../../resources/testharness-helpers.js'); | |
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 |