blob: 6cb463595baee021d1488b932ac61e72a144496a [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
function getPropertyDescriptor(name) {
return (
Object.getOwnPropertyDescriptor(ServiceWorkerContainer.prototype, name) ||
// FIXME: Remove this when http://crbug.com/43394 is fixed.
Object.getOwnPropertyDescriptor(navigator.serviceWorker, name));
}
test(function() {
assert_true('ServiceWorkerContainer' in window,
'the constructor should be defined');
assert_throws(null, function() { new ServiceWorkerContainer(); },
'the constructor should not be callable with "new"');
assert_throws(null, function() { ServiceWorkerContainer(); },
'the constructor should not be callable');
}, 'ServiceWorkerContainer interface');
</script>