11cb0ef41Sopenharmony_ci// META: title=FormData: FormData: Upload files named using punctuation 21cb0ef41Sopenharmony_ci// META: script=../support/send-file-formdata-helper.js 31cb0ef41Sopenharmony_ci "use strict"; 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ci // These have characters that undergo processing in name=, 61cb0ef41Sopenharmony_ci // filename=, and/or value; formDataPostFileUploadTest postprocesses 71cb0ef41Sopenharmony_ci // expectedEncodedBaseName for these internally. 81cb0ef41Sopenharmony_ci 91cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 101cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 111cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-QUOTATION-MARK-[\x22].txt", 121cb0ef41Sopenharmony_ci }); 131cb0ef41Sopenharmony_ci 141cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 151cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 161cb0ef41Sopenharmony_ci fileBaseName: '"file-for-upload-in-form-double-quoted.txt"', 171cb0ef41Sopenharmony_ci }); 181cb0ef41Sopenharmony_ci 191cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 201cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 211cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-REVERSE-SOLIDUS-[\\].txt", 221cb0ef41Sopenharmony_ci }); 231cb0ef41Sopenharmony_ci 241cb0ef41Sopenharmony_ci // The rest should be passed through unmodified: 251cb0ef41Sopenharmony_ci 261cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 271cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 281cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-EXCLAMATION-MARK-[!].txt", 291cb0ef41Sopenharmony_ci }); 301cb0ef41Sopenharmony_ci 311cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 321cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 331cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-DOLLAR-SIGN-[$].txt", 341cb0ef41Sopenharmony_ci }); 351cb0ef41Sopenharmony_ci 361cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 371cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 381cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-PERCENT-SIGN-[%].txt", 391cb0ef41Sopenharmony_ci }); 401cb0ef41Sopenharmony_ci 411cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 421cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 431cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-AMPERSAND-[&].txt", 441cb0ef41Sopenharmony_ci }); 451cb0ef41Sopenharmony_ci 461cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 471cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 481cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-APOSTROPHE-['].txt", 491cb0ef41Sopenharmony_ci }); 501cb0ef41Sopenharmony_ci 511cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 521cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 531cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-LEFT-PARENTHESIS-[(].txt", 541cb0ef41Sopenharmony_ci }); 551cb0ef41Sopenharmony_ci 561cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 571cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 581cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-RIGHT-PARENTHESIS-[)].txt", 591cb0ef41Sopenharmony_ci }); 601cb0ef41Sopenharmony_ci 611cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 621cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 631cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-ASTERISK-[*].txt", 641cb0ef41Sopenharmony_ci }); 651cb0ef41Sopenharmony_ci 661cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 671cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 681cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-PLUS-SIGN-[+].txt", 691cb0ef41Sopenharmony_ci }); 701cb0ef41Sopenharmony_ci 711cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 721cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 731cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-COMMA-[,].txt", 741cb0ef41Sopenharmony_ci }); 751cb0ef41Sopenharmony_ci 761cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 771cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 781cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-FULL-STOP-[.].txt", 791cb0ef41Sopenharmony_ci }); 801cb0ef41Sopenharmony_ci 811cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 821cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 831cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-SOLIDUS-[/].txt", 841cb0ef41Sopenharmony_ci }); 851cb0ef41Sopenharmony_ci 861cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 871cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 881cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-COLON-[:].txt", 891cb0ef41Sopenharmony_ci }); 901cb0ef41Sopenharmony_ci 911cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 921cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 931cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-SEMICOLON-[;].txt", 941cb0ef41Sopenharmony_ci }); 951cb0ef41Sopenharmony_ci 961cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 971cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 981cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-EQUALS-SIGN-[=].txt", 991cb0ef41Sopenharmony_ci }); 1001cb0ef41Sopenharmony_ci 1011cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 1021cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 1031cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-QUESTION-MARK-[?].txt", 1041cb0ef41Sopenharmony_ci }); 1051cb0ef41Sopenharmony_ci 1061cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 1071cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 1081cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-CIRCUMFLEX-ACCENT-[^].txt", 1091cb0ef41Sopenharmony_ci }); 1101cb0ef41Sopenharmony_ci 1111cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 1121cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 1131cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-LEFT-SQUARE-BRACKET-[[].txt", 1141cb0ef41Sopenharmony_ci }); 1151cb0ef41Sopenharmony_ci 1161cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 1171cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 1181cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-RIGHT-SQUARE-BRACKET-[]].txt", 1191cb0ef41Sopenharmony_ci }); 1201cb0ef41Sopenharmony_ci 1211cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 1221cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 1231cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-LEFT-CURLY-BRACKET-[{].txt", 1241cb0ef41Sopenharmony_ci }); 1251cb0ef41Sopenharmony_ci 1261cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 1271cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 1281cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-VERTICAL-LINE-[|].txt", 1291cb0ef41Sopenharmony_ci }); 1301cb0ef41Sopenharmony_ci 1311cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 1321cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 1331cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-RIGHT-CURLY-BRACKET-[}].txt", 1341cb0ef41Sopenharmony_ci }); 1351cb0ef41Sopenharmony_ci 1361cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 1371cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 1381cb0ef41Sopenharmony_ci fileBaseName: "file-for-upload-in-form-TILDE-[~].txt", 1391cb0ef41Sopenharmony_ci }); 1401cb0ef41Sopenharmony_ci 1411cb0ef41Sopenharmony_ci formDataPostFileUploadTest({ 1421cb0ef41Sopenharmony_ci fileNameSource: "ASCII", 1431cb0ef41Sopenharmony_ci fileBaseName: "'file-for-upload-in-form-single-quoted.txt'", 1441cb0ef41Sopenharmony_ci }); 145