OLD | NEW |
(Empty) | |
| 1 <script> |
| 2 function errorCallback(error) { |
| 3 chrome.test.fail("Got unexpected error: " + error.code); |
| 4 } |
| 5 |
| 6 function successCallback(entry) { |
| 7 chrome.test.succeed(); |
| 8 } |
| 9 |
| 10 chrome.test.runTests([function tab() { |
| 11 console.log("Requesting a filesystem..."); |
| 12 requestFileSystem(window.TEMPORARY, 100, function(fs) { |
| 13 // See if we get the same filesystem image. |
| 14 console.log("DONE requesting filesystem: " + fs.name); |
| 15 fs.root.getFile('dir/file', {create:false}, |
| 16 successCallback, errorCallback); |
| 17 }, errorCallback); |
| 18 }]); |
| 19 </script> |
OLD | NEW |