| OLD | NEW |
| 1 description("This tests if Entries returned by callbacks keep functioning even a
fter we lose a reference to the filesystem in the script."); | 1 description("This tests if Entries returned by callbacks keep functioning even a
fter we lose a reference to the filesystem in the script."); |
| 2 | 2 |
| 3 var testDirectory = null; | 3 var testDirectory = null; |
| 4 var testEntries = null; | 4 var testEntries = null; |
| 5 | 5 |
| 6 function errorCallback(error) | 6 function errorCallback(error) |
| 7 { | 7 { |
| 8 testFailed("Error occurred: " + error.code); | 8 testFailed("Error occurred: " + error.name); |
| 9 finishJSTest(); | 9 finishJSTest(); |
| 10 } | 10 } |
| 11 | 11 |
| 12 function runTest1(root) | 12 function runTest1(root) |
| 13 { | 13 { |
| 14 debug("Running runTest1()..."); | 14 debug("Running runTest1()..."); |
| 15 var helper = new JoinHelper(); | 15 var helper = new JoinHelper(); |
| 16 var done = function() { helper.done(); }; | 16 var done = function() { helper.done(); }; |
| 17 | 17 |
| 18 helper.run(function() { root.getFile('a', {create:true}, done, errorCallback
); }); | 18 helper.run(function() { root.getFile('a', {create:true}, done, errorCallback
); }); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 removeAllInDirectory(fs.root, function() { runTest1(root); }, errorCallback)
; | 61 removeAllInDirectory(fs.root, function() { runTest1(root); }, errorCallback)
; |
| 62 fs = null; | 62 fs = null; |
| 63 gc(); | 63 gc(); |
| 64 } | 64 } |
| 65 | 65 |
| 66 if (window.webkitRequestFileSystem) { | 66 if (window.webkitRequestFileSystem) { |
| 67 window.jsTestIsAsync = true; | 67 window.jsTestIsAsync = true; |
| 68 webkitRequestFileSystem(window.TEMPORARY, 100, fileSystemCallback, errorCall
back); | 68 webkitRequestFileSystem(window.TEMPORARY, 100, fileSystemCallback, errorCall
back); |
| 69 } else | 69 } else |
| 70 debug("This test requires FileSystem API support."); | 70 debug("This test requires FileSystem API support."); |
| OLD | NEW |