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

Side by Side Diff: LayoutTests/fast/filesystem/script-tests/filesystem-reference.js

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 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
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.");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698