blob: eb2e9583e805e6a9c7a2323b4f2b775c992db8de [file] [log] [blame]
<!DOCTYPE html>
<script src="../fast/js/resources/js-test-pre.js"></script>
<script>
description('Ensures that we get exceptions when we do not include required arguments for webkitStorageInfo methods.');
if (window.webkitStorageInfo) {
shouldThrow('webkitStorageInfo.requestQuota()', '"TypeError: Failed to execute \'requestQuota\' on \'StorageInfo\': 2 arguments required, but only 0 present."');
shouldThrow('webkitStorageInfo.requestQuota(webkitStorageInfo.TEMPORARY)', '"TypeError: Failed to execute \'requestQuota\' on \'StorageInfo\': 2 arguments required, but only 1 present."');
shouldThrow('webkitStorageInfo.queryUsageAndQuota()', '"TypeError: Failed to execute \'queryUsageAndQuota\' on \'StorageInfo\': 1 argument required, but only 0 present."');
} else
debug("This test requires window.webkitStorageInfo.");
</script>
<script src="../fast/js/resources/js-test-post.js"></script>