3 name
: 'CopyFileSimple',
5 {fullPath
:'/a', isDirectory
:true},
9 function(helper
) { helper
.copy('/a/b', '/a', 'c'); }
12 {fullPath
:'/a', isDirectory
:true},
18 name
: 'CopyDirectorySimple',
20 {fullPath
:'/a', isDirectory
:true},
21 {fullPath
:'/a/b', isDirectory
:true}
24 function(helper
) { helper
.copy('/a/b', '/a', 'c'); },
27 {fullPath
:'/a', isDirectory
:true},
28 {fullPath
:'/a/b', isDirectory
:true},
29 {fullPath
:'/a/c', isDirectory
:true}
33 name
: 'CopyFileToDifferentDirectory',
35 {fullPath
:'/a', isDirectory
:true},
37 {fullPath
:'/c', isDirectory
:true}
40 function(helper
) { helper
.copy('/a/b', '/c', 'd'); },
43 {fullPath
:'/a', isDirectory
:true},
49 name
: 'CopyFileWithEmptyName',
51 {fullPath
:'/a', isDirectory
:true},
53 {fullPath
:'/c', isDirectory
:true},
56 function(helper
) { helper
.copy('/a/b', '/c', null); },
59 {fullPath
:'/a', isDirectory
:true},
65 name
: 'CopyFileWithEmptyNameToSameDirectory',
67 {fullPath
:'/a', isDirectory
:true},
71 function(helper
) { helper
.copy('/a/b', '/a', null, 'InvalidModificationError'); },
74 {fullPath
:'/a', isDirectory
:true},
79 name
: 'CopyFileWithSameName',
81 {fullPath
:'/a', isDirectory
:true},
85 function(helper
) { helper
.copy('/a/b', '/a', 'b', 'InvalidModificationError'); },
88 {fullPath
:'/a', isDirectory
:true},
93 name
: 'CopyForNonExistentEntry',
95 {fullPath
:'/a', isDirectory
:true},
97 {fullPath
:'/c', isDirectory
:true},
100 function(helper
) { helper
.remove('/a/b'); },
101 function(helper
) { helper
.copy('/a/b', '/c', 'b', 'NotFoundError'); },
104 {fullPath
:'/a', isDirectory
:true},
105 {fullPath
:'/c', isDirectory
:true},
109 name
: 'CopyEntryToNonExistentDirectory',
111 {fullPath
:'/a', isDirectory
:true},
113 {fullPath
:'/c', isDirectory
:true},
116 function(helper
) { helper
.remove('/c'); },
117 function(helper
) { helper
.copy('/a/b', '/c', 'b', 'NotFoundError'); },
120 {fullPath
:'/a', isDirectory
:true},
125 name
: 'CopyEntryToItsChild',
127 {fullPath
:'/a', isDirectory
:true},
128 {fullPath
:'/a/b', isDirectory
:true},
129 {fullPath
:'/a/b/c', isDirectory
:true},
132 function(helper
) { helper
.copy('/a', '/a/b', 'd', 'InvalidModificationError'); },
133 function(helper
) { helper
.copy('/a/b', '/a/b/c', 'd', 'InvalidModificationError'); },
136 {fullPath
:'/a', isDirectory
:true},
137 {fullPath
:'/a/b', isDirectory
:true},
138 {fullPath
:'/a/b/c', isDirectory
:true},
142 name
: 'CopyRecursive',
144 {fullPath
:'/a', isDirectory
:true},
145 {fullPath
:'/a/b', isDirectory
:true},
148 {fullPath
:'/b', isDirectory
:true},
151 function(helper
) { helper
.copy('/a', '/b', 'a'); },
154 {fullPath
:'/a', isDirectory
:true},
155 {fullPath
:'/a/b', isDirectory
:true},
158 {fullPath
:'/b/a', isDirectory
:true},
159 {fullPath
:'/b/a/b', isDirectory
:true},
160 {fullPath
:'/b/a/b/c'},
161 {fullPath
:'/b/a/b/d'},
165 name
: "OverwritingCopyFileToFile",
171 function(helper
) {helper
.copy("/a","/","b");}
179 name
: "OverwritingCopyDirectoryToEmptyDirectory",
181 {fullPath
:"/a", isDirectory
:true},
183 {fullPath
:"/c", isDirectory
:true},
186 function(helper
) {helper
.copy("/a","/","c");}
189 {fullPath
:"/a", isDirectory
:true},
191 {fullPath
:"/c", isDirectory
:true},
196 name
: "OverwritingCopyFileToDirectory",
199 {fullPath
:"/b", isDirectory
: true},
202 function(helper
) {helper
.copy("/a","/","b",'InvalidModificationError');}
206 {fullPath
:"/b", isDirectory
: true},
210 name
: "OverwritingCopyDirectoryToFile",
212 {fullPath
:"/a", isDirectory
: true},
216 function(helper
) {helper
.copy("/a","/","b",'InvalidModificationError');}
219 {fullPath
:"/a", isDirectory
: true},
224 name
: "OverwritingCopyFileToNonemptyDirectory",
227 {fullPath
:"/b", isDirectory
: true},
231 function(helper
) {helper
.copy("/a","/","b",'InvalidModificationError');}
235 {fullPath
:"/b", isDirectory
: true},
240 name
: "OverwritingCopyDirectoryToNonemptyDirectory",
242 {fullPath
:"/a", isDirectory
: true},
244 {fullPath
:"/c", isDirectory
: true},
248 function(helper
) {helper
.copy("/a","/","c",'InvalidModificationError');}
251 {fullPath
:"/a", isDirectory
: true},
253 {fullPath
:"/c", isDirectory
: true},