Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Side by Side Diff: LayoutTests/storage/storageinfo-missing-arguments.html

Issue 24203002: Improve generated "Not enough arguments." TypeError exceptions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../fast/js/resources/js-test-pre.js"></script> 2 <script src="../fast/js/resources/js-test-pre.js"></script>
3 <script> 3 <script>
4 4
5 description('Ensures that we get exceptions when we do not include required argu ments for webkitStorageInfo methods.'); 5 description('Ensures that we get exceptions when we do not include required argu ments for webkitStorageInfo methods.');
6 6
7 if (window.webkitStorageInfo) { 7 if (window.webkitStorageInfo) {
8 var notEnoughArguments = '"TypeError: Not enough arguments"'; 8 shouldThrow('webkitStorageInfo.requestQuota()', '"TypeError: Failed to execu te \'requestQuota\' on \'StorageInfo\': 2 arguments required, but only 0 present ."');
9 shouldThrow('webkitStorageInfo.requestQuota()', notEnoughArguments); 9 shouldThrow('webkitStorageInfo.requestQuota(webkitStorageInfo.TEMPORARY)', ' "TypeError: Failed to execute \'requestQuota\' on \'StorageInfo\': 2 arguments r equired, but only 1 present."');
10 shouldThrow('webkitStorageInfo.requestQuota(webkitStorageInfo.TEMPORARY)', n otEnoughArguments); 10 shouldThrow('webkitStorageInfo.queryUsageAndQuota()', '"TypeError: Failed to execute \'queryUsageAndQuota\' on \'StorageInfo\': 1 argument required, but onl y 0 present."');
11 shouldThrow('webkitStorageInfo.queryUsageAndQuota()', notEnoughArguments);
12 } else 11 } else
13 debug("This test requires window.webkitStorageInfo."); 12 debug("This test requires window.webkitStorageInfo.");
14 13
15 </script> 14 </script>
16 <script src="../fast/js/resources/js-test-post.js"></script> 15 <script src="../fast/js/resources/js-test-post.js"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698