comunicationLeap/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
node_modules/formidable/test/fixture/js/special-chars-in-filename.jsRaw
1var properFilename = 'funkyfilename.txt';
2
3function expect(filename) {
4 return [
5 {type: 'field', name: 'title', value: 'Weird filename'},
6 {type: 'file', name: 'upload', filename: filename, fixture: properFilename},
7 ];
8};
9
10var webkit = " ? % * | \" < > . ? ; ' @ # $ ^ & ( ) - _ = + { } [ ] ` ~.txt";
11var ffOrIe = " ? % * | \" < > . ☃ ; ' @ # $ ^ & ( ) - _ = + { } [ ] ` ~.txt";
12
13module.exports = {
14 'osx-chrome-13.http' : expect(webkit),
15 'osx-firefox-3.6.http' : expect(ffOrIe),
16 'osx-safari-5.http' : expect(webkit),
17 'xp-chrome-12.http' : expect(webkit),
18 'xp-ie-7.http' : expect(ffOrIe),
19 'xp-ie-8.http' : expect(ffOrIe),
20 'xp-safari-5.http' : expect(webkit),
21};