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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/encoding/x-user-defined-unencodables.html

Issue 2464373006: Fix vector resize logic when encoding non-BMP chars to x-user-defined (Closed)
Patch Set: rebased Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/encoding/x-user-defined-unencodables-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> 1 <!DOCTYPE html>
2 <meta charset=windows-1252> 2 <meta charset=x-user-defined>
3 <title>Regression test for crbug.com/661367</title> 3 <title>Regression test for crbug.com/661823</title>
4 4
5 <p> 5 <p>
6 To test manually, create a local file named &#x13166;.txt then select it in th e form 6 To test manually, create a local file named &#x13166;.txt then select it in th e form
7 and hit submit. If there is no crash, the test passes. 7 and hit submit. If there is no crash, the test passes.
8 </p> 8 </p>
9 9
10 <form method=POST accept-charset="windows-1252" enctype="multipart/form-data"> 10 <form method=POST accept-charset="x-user-defined" enctype="multipart/form-data">
11 <input type=file name=q> 11 <input type=file name=q>
12 <input type=hidden name=submitted value=true> 12 <input type=hidden name=submitted value=true>
13 <input type=submit> 13 <input type=submit>
14 </form> 14 </form>
15 15
16 <script> 16 <script>
17 if (window.eventSender) { 17 if (window.eventSender) {
18 testRunner.dumpAsText(); 18 testRunner.dumpAsText();
19 testRunner.waitUntilDone(); 19 testRunner.waitUntilDone();
20 window.onload = () => { 20 window.onload = () => {
21 if (window.location.search !== '?posted') { 21 if (window.location.search !== '?posted') {
22 // Start the test 22 // Start the test
23 var input = document.querySelector('input[type=file]'); 23 var input = document.querySelector('input[type=file]');
24 var rect = input.getClientRects()[0]; 24 var rect = input.getClientRects()[0];
25 var targetX = rect.left + rect.width / 2; 25 var targetX = rect.left + rect.width / 2;
26 var targetY = rect.top + rect.height / 2; 26 var targetY = rect.top + rect.height / 2;
27 eventSender.beginDragWithFiles(['\ud80c\udd66.txt']); // U+13166 27 eventSender.beginDragWithFiles(['\ud80c\udd66.txt']); // U+13166
28 eventSender.mouseMoveTo(targetX, targetY); 28 eventSender.mouseMoveTo(targetX, targetY);
29 eventSender.mouseUp(); 29 eventSender.mouseUp();
30 var form = document.querySelector('form'); 30 var form = document.querySelector('form');
31 form.action = window.location.href + '?posted'; 31 form.action = window.location.href + '?posted';
32 form.submit(); 32 form.submit();
33 } else { 33 } else {
34 document.querySelector('p').innerText = 'PASS: did not crash'; 34 document.querySelector('p').innerText = 'PASS: did not crash';
35 testRunner.notifyDone(); 35 testRunner.notifyDone();
36 } 36 }
37 } 37 }
38 } 38 }
39 </script> 39 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/encoding/x-user-defined-unencodables-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698