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}, |