| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <div>This verifies File.size (for a file from FileSystem API) always returns the
fresh size even after the file is modified.</div> | 7 <div>This verifies File.size (for a file from FileSystem API) always returns the
fresh size even after the file is modified.</div> |
| 8 <div id='console'></div> | 8 <div id='console'></div> |
| 9 <script> | 9 <script> |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 function log(text) | 57 function log(text) |
| 58 { | 58 { |
| 59 var console = document.getElementById('console'); | 59 var console = document.getElementById('console'); |
| 60 console.appendChild(document.createTextNode(text)); | 60 console.appendChild(document.createTextNode(text)); |
| 61 console.appendChild(document.createElement('br')); | 61 console.appendChild(document.createElement('br')); |
| 62 } | 62 } |
| 63 | 63 |
| 64 function onError(e) | 64 function onError(e) |
| 65 { | 65 { |
| 66 log('ERROR: ' + e.code); | 66 log('ERROR: ' + e.name); |
| 67 console.log(e); | 67 console.log(e); |
| 68 cleanup(); | 68 cleanup(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 function cleanup() | 71 function cleanup() |
| 72 { | 72 { |
| 73 if (fileEntryForCleanup) { | 73 if (fileEntryForCleanup) { |
| 74 fileEntryForCleanup.remove(endTest, endTest); | 74 fileEntryForCleanup.remove(endTest, endTest); |
| 75 return; | 75 return; |
| 76 } | 76 } |
| 77 endTest(); | 77 endTest(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 function endTest() | 80 function endTest() |
| 81 { | 81 { |
| 82 if (testRunner) | 82 if (testRunner) |
| 83 testRunner.notifyDone(); | 83 testRunner.notifyDone(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 </script> | 86 </script> |
| 87 </body> | 87 </body> |
| 88 </html> | 88 </html> |
| OLD | NEW |