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

Unified Diff: LayoutTests/fast/filesystem/resources/op-get-entry.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/filesystem/resources/op-get-entry.js
diff --git a/LayoutTests/fast/filesystem/resources/op-get-entry.js b/LayoutTests/fast/filesystem/resources/op-get-entry.js
index 29073c3cb8161987acaf8b3c9c4e045f82cf95bd..d879e3815bb2520a8dc00665737ef70ed26fc177 100644
--- a/LayoutTests/fast/filesystem/resources/op-get-entry.js
+++ b/LayoutTests/fast/filesystem/resources/op-get-entry.js
@@ -54,14 +54,14 @@ var testCases = [
function(helper) { helper.getDirectory('/a', '/a/../../d', {create:true}); },
function(helper) { helper.getDirectory('/a', '/a/../../b/./c/../../../../../e', {create:true}); },
// TODO(jschuh): Re-enable after crbug.com/181617 is fixed.
- //function(helper) { helper.getDirectory('/a', '/a/../.../g', {create:true}, FileError.NOT_FOUND_ERR); },
+ //function(helper) { helper.getDirectory('/a', '/a/../.../g', {create:true}, 'NotFoundError'); },
function(helper) { helper.getFile('/a', './b.txt', {create:true}); },
function(helper) { helper.getFile('/a', '../b.txt', {create:true}); },
function(helper) { helper.getFile('/a', '../../b/c.txt', {create:true}); },
function(helper) { helper.getFile('/a', '/a/../../d.txt', {create:true}); },
function(helper) { helper.getFile('/a', '/a/../../b/./c/../../../../../e.txt', {create:true}); },
// TODO(jschuh): Re-enable after crbug.com/181617 is fixed.
- //function(helper) { helper.getFile('/a', '/a/../.../g.txt', {create:true}, FileError.NOT_FOUND_ERR); },
+ //function(helper) { helper.getFile('/a', '/a/../.../g.txt', {create:true}, 'NotFoundError'); },
],
postcondition: [
{fullPath:'/a', isDirectory:true},
@@ -103,10 +103,10 @@ var testCases = [
name: 'GetNonExistent',
precondition: [ ],
tests: [
- function(helper) { helper.getDirectory('/', 'a', {}, FileError.NOT_FOUND_ERR); },
- function(helper) { helper.getFile('/', 'b', {}, FileError.NOT_FOUND_ERR); },
- function(helper) { helper.getDirectory('/', '/nonexistent/a', {create:true}, FileError.NOT_FOUND_ERR); },
- function(helper) { helper.getFile('/', '/nonexistent/b', {create:true}, FileError.NOT_FOUND_ERR); }
+ function(helper) { helper.getDirectory('/', 'a', {}, 'NotFoundError'); },
+ function(helper) { helper.getFile('/', 'b', {}, 'NotFoundError'); },
+ function(helper) { helper.getDirectory('/', '/nonexistent/a', {create:true}, 'NotFoundError'); },
+ function(helper) { helper.getFile('/', '/nonexistent/b', {create:true}, 'NotFoundError'); }
],
postcondition: [ ],
},
@@ -116,8 +116,8 @@ var testCases = [
{fullPath:'/a', isDirectory:true}
],
tests: [
- function(helper) { helper.getFile('/', 'a', {}, FileError.TYPE_MISMATCH_ERR); },
- function(helper) { helper.getFile('/', '/a', {}, FileError.TYPE_MISMATCH_ERR); },
+ function(helper) { helper.getFile('/', 'a', {}, 'TypeMismatchError'); },
+ function(helper) { helper.getFile('/', '/a', {}, 'TypeMismatchError'); },
],
postcondition: [
{fullPath:'/a', isDirectory:true}
@@ -129,8 +129,8 @@ var testCases = [
{fullPath:'/a'}
],
tests: [
- function(helper) { helper.getDirectory('/', 'a', {}, FileError.TYPE_MISMATCH_ERR); },
- function(helper) { helper.getDirectory('/', '/a', {}, FileError.TYPE_MISMATCH_ERR); },
+ function(helper) { helper.getDirectory('/', 'a', {}, 'TypeMismatchError'); },
+ function(helper) { helper.getDirectory('/', '/a', {}, 'TypeMismatchError'); },
],
postcondition: [
{fullPath:'/a'}
@@ -143,8 +143,8 @@ var testCases = [
{fullPath:'/b'}
],
tests: [
- function(helper) { helper.getDirectory('/', 'a', {create:true, exclusive:true}, FileError.INVALID_MODIFICATION_ERR); },
- function(helper) { helper.getFile('/', 'b', {create:true, exclusive:true}, FileError.INVALID_MODIFICATION_ERR); }
+ function(helper) { helper.getDirectory('/', 'a', {create:true, exclusive:true}, 'InvalidModificationError'); },
+ function(helper) { helper.getFile('/', 'b', {create:true, exclusive:true}, 'InvalidModificationError'); }
],
postcondition: [
{fullPath:'/a', isDirectory:true},
« no previous file with comments | « LayoutTests/fast/filesystem/resources/op-copy.js ('k') | LayoutTests/fast/filesystem/resources/op-get-metadata.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698