You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
715 B

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