Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / serviceworker / serviceworkercontainer-interface.html
blob64d79804e97874aea789fe04c4307d631897439d
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script>
5 function getPropertyDescriptor(name) {
6 return (
7 Object.getOwnPropertyDescriptor(ServiceWorkerContainer.prototype, name) ||
8 // FIXME: Remove this when http://crbug.com/43394 is fixed.
9 Object.getOwnPropertyDescriptor(navigator.serviceWorker, name));
12 test(function() {
13 assert_true('ServiceWorkerContainer' in window,
14 'the constructor should be defined');
15 assert_throws(null, function() { new ServiceWorkerContainer(); },
16 'the constructor should not be callable with "new"');
17 assert_throws(null, function() { ServiceWorkerContainer(); },
18 'the constructor should not be callable');
20 assert_false(getPropertyDescriptor('controller').configurable,
21 'the controller property should be Unforgeable');
22 }, 'ServiceWorkerContainer interface');
23 </script>