arv@chromium.org | 29befb1 | 2011-11-03 01:56:09 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
mark.lam@apple.com | 1ca737d | 2013-09-08 05:29:22 +0000 | [diff] [blame] | 2 | <script src="../resources/js-test-pre.js"></script> |
arv@chromium.org | 29befb1 | 2011-11-03 01:56:09 +0000 | [diff] [blame] | 3 | <script> |
| 4 | |
| 5 | description('Ensures that we get exceptions when we do not include required arguments for webkitStorageInfo methods.'); |
| 6 | |
| 7 | if (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.com | 1ca737d | 2013-09-08 05:29:22 +0000 | [diff] [blame] | 16 | <script src="../resources/js-test-post.js"></script> |