Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: LayoutTests/http/tests/local/formdata/send-form-data-with-filename.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698