mirror of
https://github.com/sstent/node_app.git
synced 2026-01-27 07:31:58 +00:00
initial commit
This commit is contained in:
3
node_modules/formidable/test/fixture/js/no-filename.js
generated
vendored
Normal file
3
node_modules/formidable/test/fixture/js/no-filename.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports['generic.http'] = [
|
||||
{type: 'file', name: 'upload', filename: '', fixture: 'plain.txt'},
|
||||
];
|
||||
21
node_modules/formidable/test/fixture/js/special-chars-in-filename.js
generated
vendored
Normal file
21
node_modules/formidable/test/fixture/js/special-chars-in-filename.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
var properFilename = 'funkyfilename.txt';
|
||||
|
||||
function expect(filename) {
|
||||
return [
|
||||
{type: 'field', name: 'title', value: 'Weird filename'},
|
||||
{type: 'file', name: 'upload', filename: filename, fixture: properFilename},
|
||||
];
|
||||
};
|
||||
|
||||
var webkit = " ? % * | \" < > . ? ; ' @ # $ ^ & ( ) - _ = + { } [ ] ` ~.txt";
|
||||
var ffOrIe = " ? % * | \" < > . ☃ ; ' @ # $ ^ & ( ) - _ = + { } [ ] ` ~.txt";
|
||||
|
||||
module.exports = {
|
||||
'osx-chrome-13.http' : expect(webkit),
|
||||
'osx-firefox-3.6.http' : expect(ffOrIe),
|
||||
'osx-safari-5.http' : expect(webkit),
|
||||
'xp-chrome-12.http' : expect(webkit),
|
||||
'xp-ie-7.http' : expect(ffOrIe),
|
||||
'xp-ie-8.http' : expect(ffOrIe),
|
||||
'xp-safari-5.http' : expect(webkit),
|
||||
};
|
||||
Reference in New Issue
Block a user