OLD | NEW |
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.name); |
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()"); |
(...skipping 28 matching lines...) Expand all Loading... |
51 shouldThrow("webkitRequestFileSystem(PERSISTENT)"); | 51 shouldThrow("webkitRequestFileSystem(PERSISTENT)"); |
52 shouldThrow("webkitRequestFileSystem(PERSISTENT, 100)"); | 52 shouldThrow("webkitRequestFileSystem(PERSISTENT, 100)"); |
53 webkitRequestFileSystem(window.TEMPORARY, 100, successCallback, errorCallbac
k); | 53 webkitRequestFileSystem(window.TEMPORARY, 100, successCallback, errorCallbac
k); |
54 window.jsTestIsAsync = true; | 54 window.jsTestIsAsync = true; |
55 } else | 55 } else |
56 debug("This test requires FileSystem API support."); | 56 debug("This test requires FileSystem API support."); |
57 </script> | 57 </script> |
58 <script src="../js/resources/js-test-post.js"></script> | 58 <script src="../js/resources/js-test-post.js"></script> |
59 </body> | 59 </body> |
60 </html> | 60 </html> |
OLD | NEW |