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

Side by Side Diff: LayoutTests/http/tests/local/formdata/form-data-with-unknown-file-extension.html

Issue 6077007: Merge 74427 - 2010-12-21 Jian Li <jianli@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 years 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/local/formdata/form-data-with-unknown-file-extension-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <link rel="stylesheet" href="../../../../fast/js/resources/js-test-style.css"> 4 <link rel="stylesheet" href="../../../../fast/js/resources/js-test-style.css">
5 <script src="../../../../fast/js/resources/js-test-pre.js"></script> 5 <script src="../../../../fast/js/resources/js-test-pre.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <p id="description"></p> 8 <p id="description"></p>
9 <div id="console"></div> 9 <div id="console"></div>
10 <script src="resources/send-form-data-common.js"></script> 10 <script src="resources/send-form-data-common.js"></script>
11 <script> 11 <script>
12 function addXHREventHandlers(xhr, file) { 12 function addXHREventHandlers(xhr, file) {
13 xhr.onreadystatechange = function(event) { 13 xhr.onreadystatechange = function(event) {
14 if (xhr.readyState == xhr.DONE) { 14 if (xhr.readyState == xhr.DONE) {
15 window.xhr = xhr; 15 window.xhr = xhr;
16 shouldBe("xhr.responseText", "'file1=file.invalid:application/oc tet-stream:1234567890'"); 16 shouldBe("xhr.responseText", "'file1=file.invalid:application/oc tet-stream:1234567890'");
17 finishJSTest(); 17 finishJSTest();
18 } 18 }
19 } 19 }
20 } 20 }
21 21
22 testSendingFormData([{'type': 'file', 'name': 'file1', 'value': '../resource s/file.invalid'}], true, addXHREventHandlers); 22 testSendingFormData([{'type': 'file', 'name': 'file1', 'value': '../resource s/file.invalid'}], true, addXHREventHandlers);
23 var successfullyParsed = true; 23 var successfullyParsed = true;
24 var jsTestIsAsync = true; 24 var jsTestIsAsync = true;
25 </script> 25 </script>
26 <script src="../../../../fast/js/resources/js-test-post.js"></script> 26 <script src="../../../../fast/js/resources/js-test-post.js"></script>
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/local/formdata/form-data-with-unknown-file-extension-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698