Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Side by Side Diff: LayoutTests/fast/filesystem/file-metadata-after-write.html

Issue 22831019: Deprecate FileError in FileAPI (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: win test expectation fix (temporary) Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/fast/filesystem/file-after-reload-crash.html ('k') | LayoutTests/fast/filesystem/not-enough-arguments.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698