Chromium Code Reviews| 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(); }, | |
|
jsbell
2014/04/11 15:54:09
Can you add a case that calls the constructor as f
| |
| 9 'the constructor should not be callable'); | |
| 10 assert_equals(Object.getPrototypeOf(ServiceWorker.prototype), | |
| 11 Worker.prototype, | |
| 12 'ServiceWorker should extend Worker'); | |
| 13 }, 'ServiceWorker interface'); | |
| 14 </script> | |
| OLD | NEW |