Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: LayoutTests/fast/serviceworker/serviceworker-interface.html

Issue 225053005: ServiceWorker should have an interface object. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tweak test. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698