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..9a95bc0054d15e87156c1f69717e542b37891263 |
--- /dev/null |
+++ b/LayoutTests/fast/serviceworker/serviceworker-interface.html |
@@ -0,0 +1,16 @@ |
+<!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(); }, |
+ 'the constructor should not be callable with "new"'); |
+ assert_throws(null, function() { ServiceWorker(); }, |
+ 'the constructor should not be callable'); |
+ assert_equals(Object.getPrototypeOf(ServiceWorker.prototype), |
+ Worker.prototype, |
+ 'ServiceWorker should extend Worker'); |
+}, 'ServiceWorker interface'); |
+</script> |