blob: 917c5662fe5e6b8f2c846e883ceb25a4c9a0f0fa [file] [log] [blame]
<!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>