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

Unified Diff: LayoutTests/fast/filesystem/resources/op-copy.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-copy.js
diff --git a/LayoutTests/fast/filesystem/resources/op-copy.js b/LayoutTests/fast/filesystem/resources/op-copy.js
index 171752905742197b4809522c81b2a2b3aa13068f..7e4b36495e11fc968fe683de58872b2d9922338a 100644
--- a/LayoutTests/fast/filesystem/resources/op-copy.js
+++ b/LayoutTests/fast/filesystem/resources/op-copy.js
@@ -68,7 +68,7 @@ var testCases = [
{fullPath:'/a/b'},
],
tests: [
- function(helper) { helper.copy('/a/b', '/a', null, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.copy('/a/b', '/a', null, 'InvalidModificationError'); },
],
postcondition: [
{fullPath:'/a', isDirectory:true},
@@ -82,7 +82,7 @@ var testCases = [
{fullPath:'/a/b'},
],
tests: [
- function(helper) { helper.copy('/a/b', '/a', 'b', FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.copy('/a/b', '/a', 'b', 'InvalidModificationError'); },
],
postcondition: [
{fullPath:'/a', isDirectory:true},
@@ -98,7 +98,7 @@ var testCases = [
],
tests: [
function(helper) { helper.remove('/a/b'); },
- function(helper) { helper.copy('/a/b', '/c', 'b', FileError.NOT_FOUND_ERR); },
+ function(helper) { helper.copy('/a/b', '/c', 'b', 'NotFoundError'); },
],
postcondition: [
{fullPath:'/a', isDirectory:true},
@@ -114,7 +114,7 @@ var testCases = [
],
tests: [
function(helper) { helper.remove('/c'); },
- function(helper) { helper.copy('/a/b', '/c', 'b', FileError.NOT_FOUND_ERR); },
+ function(helper) { helper.copy('/a/b', '/c', 'b', 'NotFoundError'); },
],
postcondition: [
{fullPath:'/a', isDirectory:true},
@@ -129,8 +129,8 @@ var testCases = [
{fullPath:'/a/b/c', isDirectory:true},
],
tests: [
- function(helper) { helper.copy('/a', '/a/b', 'd', FileError.INVALID_MODIFICATION_ERR); },
- function(helper) { helper.copy('/a/b', '/a/b/c', 'd', FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.copy('/a', '/a/b', 'd', 'InvalidModificationError'); },
+ function(helper) { helper.copy('/a/b', '/a/b/c', 'd', 'InvalidModificationError'); },
],
postcondition: [
{fullPath:'/a', isDirectory:true},
@@ -199,7 +199,7 @@ var testCases = [
{fullPath:"/b", isDirectory: true},
],
tests: [
- function(helper) {helper.copy("/a","/","b",FileError.INVALID_MODIFICATION_ERR);}
+ function(helper) {helper.copy("/a","/","b",'InvalidModificationError');}
],
postcondition: [
{fullPath:"/a"},
@@ -213,7 +213,7 @@ var testCases = [
{fullPath:"/b"},
],
tests: [
- function(helper) {helper.copy("/a","/","b",FileError.INVALID_MODIFICATION_ERR);}
+ function(helper) {helper.copy("/a","/","b",'InvalidModificationError');}
],
postcondition: [
{fullPath:"/a", isDirectory: true},
@@ -228,7 +228,7 @@ var testCases = [
{fullPath:"/b/c"},
],
tests: [
- function(helper) {helper.copy("/a","/","b",FileError.INVALID_MODIFICATION_ERR);}
+ function(helper) {helper.copy("/a","/","b",'InvalidModificationError');}
],
postcondition: [
{fullPath:"/a"},
@@ -245,7 +245,7 @@ var testCases = [
{fullPath:"/c/d"},
],
tests: [
- function(helper) {helper.copy("/a","/","c",FileError.INVALID_MODIFICATION_ERR);}
+ function(helper) {helper.copy("/a","/","c",'InvalidModificationError');}
],
postcondition: [
{fullPath:"/a", isDirectory: true},
« no previous file with comments | « LayoutTests/fast/filesystem/resources/file-writer-abort.js ('k') | LayoutTests/fast/filesystem/resources/op-get-entry.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698