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

Side by Side Diff: LayoutTests/fast/filesystem/entry-points-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="../js/resources/js-test-pre.js"></script> 2 <script src="../js/resources/js-test-pre.js"></script>
3 <script> 3 <script>
4 description('Ensures that we get exceptions when we do not include required argu ments for webkitRequestFileSystem and webkitResolveLocalFileSystemURL methods.') ; 4 description('Ensures that we get exceptions when we do not include required argu ments for webkitRequestFileSystem and webkitResolveLocalFileSystemURL methods.') ;
5 5
6 if (window.webkitResolveLocalFileSystemURL) { 6 if (window.webkitResolveLocalFileSystemURL) {
7 var notEnoughArguments = '"TypeError: Not enough arguments"'; 7 shouldThrow('webkitResolveLocalFileSystemURL()', '"TypeError: Failed to exec ute \'webkitResolveLocalFileSystemURL\' on \'DOMWindow\': 2 arguments required, but only 0 present."');
8 shouldThrow('webkitResolveLocalFileSystemURL()', notEnoughArguments); 8 shouldThrow('webkitResolveLocalFileSystemURL("")', '"TypeError: Failed to ex ecute \'webkitResolveLocalFileSystemURL\' on \'DOMWindow\': 2 arguments required , but only 1 present."');
9 shouldThrow('webkitResolveLocalFileSystemURL("")', notEnoughArguments); 9 shouldThrow('webkitRequestFileSystem()', '"TypeError: Failed to execute \'we bkitRequestFileSystem\' on \'DOMWindow\': 3 arguments required, but only 0 prese nt."');
10 shouldThrow('webkitRequestFileSystem()', notEnoughArguments); 10 shouldThrow('webkitRequestFileSystem(TEMPORARY)', '"TypeError: Failed to exe cute \'webkitRequestFileSystem\' on \'DOMWindow\': 3 arguments required, but onl y 1 present."');
11 shouldThrow('webkitRequestFileSystem(TEMPORARY)', notEnoughArguments); 11 shouldThrow('webkitRequestFileSystem(TEMPORARY, 1)', '"TypeError: Failed to execute \'webkitRequestFileSystem\' on \'DOMWindow\': 3 arguments required, but only 2 present."');
12 shouldThrow('webkitRequestFileSystem(TEMPORARY, 1)', notEnoughArguments);
13 } else 12 } else
14 debug("This test requires window.webkitResolveLocalFileSystemURL."); 13 debug("This test requires window.webkitResolveLocalFileSystemURL.");
15 </script> 14 </script>
16 <script src="../js/resources/js-test-post.js"></script> 15 <script src="../js/resources/js-test-post.js"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698