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

Unified Diff: LayoutTests/fast/filesystem/resources/op-move.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-move.js
diff --git a/LayoutTests/fast/filesystem/resources/op-move.js b/LayoutTests/fast/filesystem/resources/op-move.js
index 1341a432a22e9a5a594728d0a73379cd45b49b6d..07d6dcbdc5bd1aa613034bc32c4eb3bec11ad808 100644
--- a/LayoutTests/fast/filesystem/resources/op-move.js
+++ b/LayoutTests/fast/filesystem/resources/op-move.js
@@ -68,7 +68,7 @@ var testCases = [
{fullPath:'/a/b'},
],
tests: [
- function(helper) { helper.move('/a/b', '/a', null, FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.move('/a/b', '/a', null, 'InvalidModificationError'); },
],
postcondition: [
{fullPath:'/a', isDirectory:true},
@@ -82,7 +82,7 @@ var testCases = [
{fullPath:'/a/b'},
],
tests: [
- function(helper) { helper.move('/a/b', '/a', 'b', FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.move('/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.move('/a/b', '/c', 'b', FileError.NOT_FOUND_ERR); },
+ function(helper) { helper.move('/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.move('/a/b', '/c', 'b', FileError.NOT_FOUND_ERR); },
+ function(helper) { helper.move('/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.move('/a', '/a/b', 'd', FileError.INVALID_MODIFICATION_ERR); },
- function(helper) { helper.move('/a/b', '/a/b/c', 'd', FileError.INVALID_MODIFICATION_ERR); },
+ function(helper) { helper.move('/a', '/a/b', 'd', 'InvalidModificationError'); },
+ function(helper) { helper.move('/a/b', '/a/b/c', 'd', 'InvalidModificationError'); },
],
postcondition: [
{fullPath:'/a', isDirectory:true},
@@ -194,7 +194,7 @@ var testCases = [
{fullPath:"/b", isDirectory: true},
],
tests: [
- function(helper) {helper.move("/a","/","b",FileError.INVALID_MODIFICATION_ERR);}
+ function(helper) {helper.move("/a","/","b",'InvalidModificationError');}
],
postcondition: [
{fullPath:"/a"},
@@ -208,7 +208,7 @@ var testCases = [
{fullPath:"/b"},
],
tests: [
- function(helper) {helper.move("/a","/","b",FileError.INVALID_MODIFICATION_ERR);}
+ function(helper) {helper.move("/a","/","b",'InvalidModificationError');}
],
postcondition: [
{fullPath:"/a", isDirectory: true},
@@ -223,7 +223,7 @@ var testCases = [
{fullPath:"/b/c"},
],
tests: [
- function(helper) {helper.move("/a","/","b",FileError.INVALID_MODIFICATION_ERR);}
+ function(helper) {helper.move("/a","/","b",'InvalidModificationError');}
],
postcondition: [
{fullPath:"/a"},
@@ -240,7 +240,7 @@ var testCases = [
{fullPath:"/c/d"},
],
tests: [
- function(helper) {helper.move("/a","/","c",FileError.INVALID_MODIFICATION_ERR);}
+ function(helper) {helper.move("/a","/","c",'InvalidModificationError');}
],
postcondition: [
{fullPath:"/a", isDirectory: true},
« no previous file with comments | « LayoutTests/fast/filesystem/resources/op-get-metadata.js ('k') | LayoutTests/fast/filesystem/resources/op-remove.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698