| <!DOCTYPE html> |
| <script src="../../../resources/js-test-pre.js"></script> |
| <script> |
| |
| description('Ensures that we get exceptions when we do not include required arguments for localStorage methods.'); |
| |
| var notEnoughArguments = '"TypeError: Not enough arguments"'; |
| |
| shouldThrow('localStorage.key()', notEnoughArguments); |
| shouldThrow('localStorage.getItem()', notEnoughArguments); |
| shouldThrow('localStorage.setItem()', notEnoughArguments); |
| shouldThrow('localStorage.setItem("a")', notEnoughArguments); |
| shouldThrow('localStorage.removeItem()', notEnoughArguments); |
| |
| </script> |
| <script src="../../../resources/js-test-post.js"></script> |