OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../../../fast/js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script src="resources/send-form-data-common.js"></script> | 9 <script src="resources/send-form-data-common.js"></script> |
10 <script> | 10 <script> |
11 description("Test that filename passed to FormData.append() takes precedence ove
r filename in File."); | 11 description("Test that filename passed to FormData.append() takes precedence ove
r filename in File."); |
12 | 12 |
13 function runTest() | 13 function runTest() |
14 { | 14 { |
15 debug("Sending FormData containing one file with custom filename:"); | 15 debug("Sending FormData containing one file with custom filename:"); |
16 testSendingFormData([ | 16 testSendingFormData([ |
17 { 'type': 'file', 'name': 'file1', 'value': '../resources/file-for-drag-
to-send.txt', 'filename': 'custom-name.txt' } | 17 { 'type': 'file', 'name': 'file1', 'value': '../resources/file-for-drag-
to-send.txt', 'filename': 'custom-name.txt' } |
18 ]); | 18 ]); |
19 } | 19 } |
20 | 20 |
21 if (window.eventSender) { | 21 if (window.eventSender) { |
22 runTest(); | 22 runTest(); |
23 formDataTestingCleanup(); | 23 formDataTestingCleanup(); |
24 } else { | 24 } else { |
25 testFailed("This test is not interactive, please run using DumpRenderTree"); | 25 testFailed("This test is not interactive, please run using DumpRenderTree"); |
26 } | 26 } |
27 | 27 |
28 var successfullyParsed = true; | 28 var successfullyParsed = true; |
29 </script> | 29 </script> |
30 <script src="../../../../fast/js/resources/js-test-post.js"></script> | |
31 </body> | 30 </body> |
32 </html> | 31 </html> |
33 | 32 |
OLD | NEW |