2 <script src=
"../../resources/testharness.js"></script>
3 <script src=
"../../resources/testharnessreport.js"></script>
6 assert_true('ServiceWorker' in window
,
7 'the constructor should be defined');
8 assert_throws(null, function() { new ServiceWorker(); },
9 'the constructor should not be callable with "new"');
10 assert_throws(null, function() { ServiceWorker(); },
11 'the constructor should not be callable');
12 assert_equals(Object
.getPrototypeOf(ServiceWorker
.prototype),
14 'ServiceWorker should extend Worker');
15 }, 'ServiceWorker interface');