Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / serviceworker / serviceworker-interface.html
blob9a95bc0054d15e87156c1f69717e542b37891263
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script>
5 test(function() {
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),
13 Worker.prototype,
14 'ServiceWorker should extend Worker');
15 }, 'ServiceWorker interface');
16 </script>