blob: fbaf4a783041896072fb19ebce027a3f8d2ea344 [file] [log] [blame]
arv@chromium.org29befb12011-11-03 01:56:09 +00001<!DOCTYPE html>
mark.lam@apple.com1ca737d2013-09-08 05:29:22 +00002<script src="../resources/js-test-pre.js"></script>
arv@chromium.org29befb12011-11-03 01:56:09 +00003<script>
4
5description('Ensures that we get exceptions when we do not include required arguments for webkitStorageInfo methods.');
6
7if (window.webkitStorageInfo) {
8 var notEnoughArguments = '"TypeError: Not enough arguments"';
9 shouldThrow('webkitStorageInfo.requestQuota()', notEnoughArguments);
10 shouldThrow('webkitStorageInfo.requestQuota(webkitStorageInfo.TEMPORARY)', notEnoughArguments);
11 shouldThrow('webkitStorageInfo.queryUsageAndQuota()', notEnoughArguments);
12} else
13 debug("This test requires window.webkitStorageInfo.");
14
15</script>
mark.lam@apple.com1ca737d2013-09-08 05:29:22 +000016<script src="../resources/js-test-post.js"></script>