blob: 8540aa6aa8acf3dbac26d0cc4f7ea4af7c94bf11 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
test(function() {
assert_true('ServiceWorkerContainer' in window,
'the constructor should be defined');
assert_throws_js(TypeError, function() { new ServiceWorkerContainer(); },
'the constructor should not be callable with "new"');
assert_throws_js(TypeError, function() { ServiceWorkerContainer(); },
'the constructor should not be callable');
}, 'ServiceWorkerContainer interface');
</script>