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

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

Issue 2102093002: ServiceWorker: Remove [Unforgeable] idl extended attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <script> 4 <script>
5 function getPropertyDescriptor(name) { 5 function getPropertyDescriptor(name) {
6 return ( 6 return (
7 Object.getOwnPropertyDescriptor(ServiceWorkerContainer.prototype, name) || 7 Object.getOwnPropertyDescriptor(ServiceWorkerContainer.prototype, name) ||
8 // FIXME: Remove this when http://crbug.com/43394 is fixed. 8 // FIXME: Remove this when http://crbug.com/43394 is fixed.
9 Object.getOwnPropertyDescriptor(navigator.serviceWorker, name)); 9 Object.getOwnPropertyDescriptor(navigator.serviceWorker, name));
10 } 10 }
11 11
12 test(function() { 12 test(function() {
13 assert_true('ServiceWorkerContainer' in window, 13 assert_true('ServiceWorkerContainer' in window,
14 'the constructor should be defined'); 14 'the constructor should be defined');
15 assert_throws(null, function() { new ServiceWorkerContainer(); }, 15 assert_throws(null, function() { new ServiceWorkerContainer(); },
16 'the constructor should not be callable with "new"'); 16 'the constructor should not be callable with "new"');
17 assert_throws(null, function() { ServiceWorkerContainer(); }, 17 assert_throws(null, function() { ServiceWorkerContainer(); },
18 'the constructor should not be callable'); 18 'the constructor should not be callable');
19
20 assert_false(getPropertyDescriptor('controller').configurable,
21 'the controller property should be Unforgeable');
22 }, 'ServiceWorkerContainer interface'); 19 }, 'ServiceWorkerContainer interface');
23 </script> 20 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698