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

Side by Side Diff: LayoutTests/fast/filesystem/cross-filesystem-op.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 <html> 1 <html>
2 <body> 2 <body>
3 <div>This tests basic cross-filesystem operations.</div> 3 <div>This tests basic cross-filesystem operations.</div>
4 4
5 <div id="destination" style="min-height:100px; border: solid 1px black">Drop fil es here if you test this manually</div> 5 <div id="destination" style="min-height:100px; border: solid 1px black">Drop fil es here if you test this manually</div>
6 6
7 <div id="console"></div> 7 <div id="console"></div>
8 8
9 <script> 9 <script>
10 var methods = [ 'copyTo', 'moveTo' ]; 10 var methods = [ 'copyTo', 'moveTo' ];
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 function test(expect, actual) 43 function test(expect, actual)
44 { 44 {
45 log((expect == actual ? 'PASS' : 'FAIL') + ': "' + expect + '" == "' + actua l + '"'); 45 log((expect == actual ? 'PASS' : 'FAIL') + ': "' + expect + '" == "' + actua l + '"');
46 } 46 }
47 47
48 48
49 function errorCallback(msg) 49 function errorCallback(msg)
50 { 50 {
51 return function(e) { 51 return function(e) {
52 console.log(e); 52 console.log(e);
53 log('ERROR:' + msg + ': ' + e.code); 53 log('ERROR:' + msg + ': ' + e.name);
54 if (window.testRunner) 54 if (window.testRunner)
55 testRunner.notifyDone(); 55 testRunner.notifyDone();
56 }; 56 };
57 } 57 }
58 58
59 function setupDestFileSystem(successCallback) { 59 function setupDestFileSystem(successCallback) {
60 webkitRequestFileSystem(window.TEMPORARY, 1024, function (fs) { 60 webkitRequestFileSystem(window.TEMPORARY, 1024, function (fs) {
61 fs.root.getDirectory( 61 fs.root.getDirectory(
62 destDirectoryPath, 62 destDirectoryPath,
63 {create:true}, 63 {create:true},
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 255
256 eventSender.beginDragWithFiles([sourceDirectoryPath]); 256 eventSender.beginDragWithFiles([sourceDirectoryPath]);
257 eventSender.leapForward(100); 257 eventSender.leapForward(100);
258 eventSender.mouseMoveTo(destination.offsetLeft + 10, destination.offsetTop + destination.offsetHeight / 2); 258 eventSender.mouseMoveTo(destination.offsetLeft + 10, destination.offsetTop + destination.offsetHeight / 2);
259 eventSender.mouseUp(); 259 eventSender.mouseUp();
260 } 260 }
261 261
262 </script> 262 </script>
263 </body> 263 </body>
264 </html> 264 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698