2 <script src=
"../../resources/js-test.js"></script>
5 description('Ensures that we get exceptions when we do not include required arguments for webkitStorageInfo methods.');
7 if (window
.webkitStorageInfo
) {
8 shouldThrow('webkitStorageInfo.requestQuota()', '"TypeError: Failed to execute \'requestQuota\' on \'DeprecatedStorageInfo\': 2 arguments required, but only 0 present."');
9 shouldThrow('webkitStorageInfo.requestQuota(webkitStorageInfo.TEMPORARY)', '"TypeError: Failed to execute \'requestQuota\' on \'DeprecatedStorageInfo\': 2 arguments required, but only 1 present."');
10 shouldThrow('webkitStorageInfo.queryUsageAndQuota()', '"TypeError: Failed to execute \'queryUsageAndQuota\' on \'DeprecatedStorageInfo\': 1 argument required, but only 0 present."');
12 debug("This test requires window.webkitStorageInfo.");