| Index: LayoutTests/storage/domstorage/localstorage/missing-arguments.html
|
| diff --git a/LayoutTests/storage/domstorage/localstorage/missing-arguments.html b/LayoutTests/storage/domstorage/localstorage/missing-arguments.html
|
| index 58e1460bf451a5eb1a5ac52b164801848a09ef4d..8306346b40807e155e82c301abdc58c891124bd2 100644
|
| --- a/LayoutTests/storage/domstorage/localstorage/missing-arguments.html
|
| +++ b/LayoutTests/storage/domstorage/localstorage/missing-arguments.html
|
| @@ -4,13 +4,11 @@
|
|
|
| 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);
|
| +shouldThrow('localStorage.key()', '"TypeError: Failed to execute \'key\' on \'Storage\': 1 argument required, but only 0 present."');
|
| +shouldThrow('localStorage.getItem()', '"TypeError: Failed to execute \'getItem\' on \'Storage\': 1 argument required, but only 0 present."');
|
| +shouldThrow('localStorage.setItem()', '"TypeError: Failed to execute \'setItem\' on \'Storage\': 2 arguments required, but only 0 present."');
|
| +shouldThrow('localStorage.setItem("a")', '"TypeError: Failed to execute \'setItem\' on \'Storage\': 2 arguments required, but only 0 present."');
|
| +shouldThrow('localStorage.removeItem()', '"TypeError: Failed to execute \'removeItem\' on \'Storage\': 1 argument required, but only 0 present."');
|
|
|
| </script>
|
| <script src="../../../fast/js/resources/js-test-post.js"></script>
|
|
|