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

Side by Side Diff: LayoutTests/fast/filesystem/not-enough-arguments.html

Issue 22436002: Replace EntryArray type by an Entry[] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/fast/filesystem/not-enough-arguments-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../js/resources/js-test-pre.js"></script> 3 <script src="../js/resources/js-test-pre.js"></script>
4 <script src="resources/fs-test-util.js"></script> 4 <script src="resources/fs-test-util.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 description('This test tries calling various filesystem functions with too few a rguments.'); 8 description('This test tries calling various filesystem functions with too few a rguments.');
9 9
10 function errorCallback(error) 10 function errorCallback(error)
11 { 11 {
12 debug("Error occured:" + error.code); 12 debug("Error occured:" + error.code);
13 finishJSTest(); 13 finishJSTest();
14 } 14 }
15 15
16 function successCallback(fs) 16 function successCallback(fs)
17 { 17 {
18 fileSystem = fs; 18 fileSystem = fs;
19 debug("Successfully obtained Persistent FileSystem:" + fileSystem.name); 19 debug("Successfully obtained Persistent FileSystem:" + fileSystem.name);
20 20
21 shouldThrow("fileSystem.root.removeRecursively()"); 21 shouldThrow("fileSystem.root.removeRecursively()");
22 shouldThrow("fileSystem.root.moveTo()"); 22 shouldThrow("fileSystem.root.moveTo()");
23 shouldThrow("fileSystem.root.copyTo()"); 23 shouldThrow("fileSystem.root.copyTo()");
24 reader = fileSystem.root.createReader(); 24 reader = fileSystem.root.createReader();
25 shouldThrow("reader.readEntries()"); 25 shouldThrow("reader.readEntries()");
26 26
27 reader.readEntries(function(entries) { 27 reader.readEntries(function(entries) {
28 window.entries = entries; 28 window.entries = entries;
29 shouldThrow("entries.item()");
30 29
31 fileSystem.root.getFile("/test", { create: true }, function(entry) { 30 fileSystem.root.getFile("/test", { create: true }, function(entry) {
32 window.entry = entry; 31 window.entry = entry;
33 shouldThrow("entry.createWriter()"); 32 shouldThrow("entry.createWriter()");
34 shouldThrow("entry.file()"); 33 shouldThrow("entry.file()");
35 34
36 entry.createWriter(function(writer) { 35 entry.createWriter(function(writer) {
37 window.writer = writer; 36 window.writer = writer;
38 37
39 shouldThrow("writer.write()"); 38 shouldThrow("writer.write()");
(...skipping 12 matching lines...) Expand all
52 shouldThrow("webkitRequestFileSystem(PERSISTENT)"); 51 shouldThrow("webkitRequestFileSystem(PERSISTENT)");
53 shouldThrow("webkitRequestFileSystem(PERSISTENT, 100)"); 52 shouldThrow("webkitRequestFileSystem(PERSISTENT, 100)");
54 webkitRequestFileSystem(window.TEMPORARY, 100, successCallback, errorCallbac k); 53 webkitRequestFileSystem(window.TEMPORARY, 100, successCallback, errorCallbac k);
55 window.jsTestIsAsync = true; 54 window.jsTestIsAsync = true;
56 } else 55 } else
57 debug("This test requires FileSystem API support."); 56 debug("This test requires FileSystem API support.");
58 </script> 57 </script>
59 <script src="../js/resources/js-test-post.js"></script> 58 <script src="../js/resources/js-test-post.js"></script>
60 </body> 59 </body>
61 </html> 60 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/filesystem/not-enough-arguments-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698