| Index: third_party/WebKit/LayoutTests/fast/encoding/latin1-unencodables.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/encoding/latin1-unencodables.html b/third_party/WebKit/LayoutTests/fast/encoding/latin1-unencodables.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..eb73eb409e579f528bb152cd1c4b070b00aa96a3
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/encoding/latin1-unencodables.html
|
| @@ -0,0 +1,39 @@
|
| +<!DOCTYPE html>
|
| +<meta charset=windows-1252>
|
| +<title>Regression test for crbug.com/661367</title>
|
| +
|
| +<p>
|
| + To test manually, create a local file named 𓅦.txt then select it in the form
|
| + and hit submit. If there is no crash, the test passes.
|
| +</p>
|
| +
|
| +<form method=POST accept-charset="windows-1252" enctype="multipart/form-data">
|
| + <input type=file name=q>
|
| + <input type=hidden name=submitted value=true>
|
| + <input type=submit>
|
| +</form>
|
| +
|
| +<script>
|
| +if (window.eventSender) {
|
| + testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| + window.onload = () => {
|
| + if (window.location.search !== '?posted') {
|
| + // Start the test
|
| + var input = document.querySelector('input[type=file]');
|
| + var rect = input.getClientRects()[0];
|
| + var targetX = rect.left + rect.width / 2;
|
| + var targetY = rect.top + rect.height / 2;
|
| + eventSender.beginDragWithFiles(['\ud80c\udd66.txt']); // U+13166
|
| + eventSender.mouseMoveTo(targetX, targetY);
|
| + eventSender.mouseUp();
|
| + var form = document.querySelector('form');
|
| + form.action = window.location.href + '?posted';
|
| + form.submit();
|
| + } else {
|
| + document.querySelector('p').innerText = 'PASS: did not crash';
|
| + testRunner.notifyDone();
|
| + }
|
| + }
|
| +}
|
| +</script>
|
|
|