| OLD | NEW |
| (Empty) | |
| 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> |
| OLD | NEW |