Index: LayoutTests/fast/serviceworker/serviceworker-interface.html |
diff --git a/LayoutTests/fast/serviceworker/serviceworker-interface.html b/LayoutTests/fast/serviceworker/serviceworker-interface.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..985b0742d4084f6419753f1733bcbfb02a67d40a |
--- /dev/null |
+++ b/LayoutTests/fast/serviceworker/serviceworker-interface.html |
@@ -0,0 +1,14 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+test(function() { |
+ assert_true('ServiceWorker' in window, |
+ 'the constructor should be defined'); |
+ assert_throws(null, function() { new ServiceWorker(); }, |
jsbell
2014/04/11 15:54:09
Can you add a case that calls the constructor as f
|
+ 'the constructor should not be callable'); |
+ assert_equals(Object.getPrototypeOf(ServiceWorker.prototype), |
+ Worker.prototype, |
+ 'ServiceWorker should extend Worker'); |
+}, 'ServiceWorker interface'); |
+</script> |