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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/response-encoding2.html

Issue 22875053: Do not normalize into NFC the data sent by XMLHttpRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/xmlhttprequest/response-encoding2.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/response-encoding2.html b/LayoutTests/http/tests/xmlhttprequest/response-encoding2.html
new file mode 100644
index 0000000000000000000000000000000000000000..86bc2a0479a8a3a9b6cce3156d4cd13a70324f1f
--- /dev/null
+++ b/LayoutTests/http/tests/xmlhttprequest/response-encoding2.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+</head>
+<body>
+<p>Test that XHR response text is not normalized.</p>
+<div id="result">FAIL: script didn't run to completion.</div>
+<script>
+
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ var xhr = new XMLHttpRequest;
+ xhr.open("GET", "resources/response-encoding2-reply.txt", false);
+ xhr.send(null);
+ if (xhr.responseText == "n\u0303")
+ document.getElementById("result").firstChild.data = "SUCCESS";
+ else
+ document.getElementById("result").firstChild.data = "FAILURE: '" + xhr.responseText + "'";
+
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698