| Index: LayoutTests/http/tests/xmlhttprequest/request-encoding3.html
|
| diff --git a/LayoutTests/http/tests/xmlhttprequest/request-encoding3.html b/LayoutTests/http/tests/xmlhttprequest/request-encoding3.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6ff6562689a2b93e78d44138ee8c2076de95a879
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/xmlhttprequest/request-encoding3.html
|
| @@ -0,0 +1,26 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
| +</head>
|
| +<body>
|
| +<p>Test for <a href="http://crbug.com/277526">http://crbug.com/277526</a>:
|
| +XMLHttpRequest normalizes the data sent to the server into Unicode NFC.</p>
|
| +<div id="result">FAIL: script didn't run to completion.</div>
|
| +<script>
|
| +
|
| + if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +
|
| + var xhr = new XMLHttpRequest;
|
| + xhr.open("POST", "resources/post-echo-as-utf-8.cgi", false);
|
| + xhr.setRequestHeader("content-type", "application/json; charset=UTF-8");
|
| + xhr.send("{\"key\":\"\\n\u0300\"}");
|
| + if (xhr.responseText == "{\"key\":\"\\n\u0300\"}")
|
| + document.getElementById("result").firstChild.data = "SUCCESS";
|
| + else
|
| + document.getElementById("result").firstChild.data = "FAILURE: '" + xhr.responseText + "'";
|
| +
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|