OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="resources/fs-test-util.js"></script> | 4 <script src="resources/fs-test-util.js"></script> |
5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../js/resources/js-test-pre.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <p id="description"></p> | 8 <p id="description"></p> |
9 <div id="console"></div> | 9 <div id="console"></div> |
10 <script> | 10 <script> |
(...skipping 11 matching lines...) Expand all Loading... |
22 evalAndLog(property + " = " + value); | 22 evalAndLog(property + " = " + value); |
23 newValue = eval(property); | 23 newValue = eval(property); |
24 if (oldValue == newValue) { | 24 if (oldValue == newValue) { |
25 testPassed(property + " is still " + oldValue); | 25 testPassed(property + " is still " + oldValue); |
26 } else { | 26 } else { |
27 testFailed(property + " value was changed"); | 27 testFailed(property + " value was changed"); |
28 } | 28 } |
29 } | 29 } |
30 | 30 |
31 function errorCallback(error) { | 31 function errorCallback(error) { |
32 testFailed("Error occured:" + error.code); | 32 testFailed("Error occured:" + error.name); |
33 finishJSTest(); | 33 finishJSTest(); |
34 } | 34 } |
35 | 35 |
36 function fileCallback(file) { | 36 function fileCallback(file) { |
37 testFile = file; | 37 testFile = file; |
38 setReadonlyProperty("testFile.size", "1"); | 38 setReadonlyProperty("testFile.size", "1"); |
39 setReadonlyProperty("testFile.type", "'application/octet-stream'"); | 39 setReadonlyProperty("testFile.type", "'application/octet-stream'"); |
40 setReadonlyProperty("testFile.name", "'bar'"); | 40 setReadonlyProperty("testFile.name", "'bar'"); |
41 finishJSTest(); | 41 finishJSTest(); |
42 } | 42 } |
(...skipping 11 matching lines...) Expand all Loading... |
54 fileSystem = fs; | 54 fileSystem = fs; |
55 evalAndLog("removeAllInDirectory(fileSystem.root, createTestFile, errorCallb
ack);"); | 55 evalAndLog("removeAllInDirectory(fileSystem.root, createTestFile, errorCallb
ack);"); |
56 } | 56 } |
57 | 57 |
58 var jsTestIsAsync = true; | 58 var jsTestIsAsync = true; |
59 evalAndLog("webkitRequestFileSystem(TEMPORARY, 100, fileSystemCallback, errorCal
lback);"); | 59 evalAndLog("webkitRequestFileSystem(TEMPORARY, 100, fileSystemCallback, errorCal
lback);"); |
60 </script> | 60 </script> |
61 <script src="../js/resources/js-test-post.js"></script> | 61 <script src="../js/resources/js-test-post.js"></script> |
62 </body> | 62 </body> |
63 </html> | 63 </html> |
OLD | NEW |