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

Unified Diff: LayoutTests/inspector/load-resource-synchronously-utf8.html

Issue 15333014: DevTools: InspectorFrontendHost::loadResourceSynchronously() builds ASCII-only results (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed comment Created 7 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/inspector/load-resource-synchronously-utf8-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/load-resource-synchronously-utf8.html
diff --git a/LayoutTests/inspector/load-resource-synchronously-utf8.html b/LayoutTests/inspector/load-resource-synchronously-utf8.html
new file mode 100644
index 0000000000000000000000000000000000000000..99716784fb951ea3b6a7523ea0a8c418f3c53784
--- /dev/null
+++ b/LayoutTests/inspector/load-resource-synchronously-utf8.html
@@ -0,0 +1,18 @@
+<html>
+<head>
+<script src="../http/tests/inspector/inspector-test.js"></script>
+<script>
+function test()
+{
+ var asciiText = InspectorFrontendHost.loadResourceSynchronously("data:text/plain;,ASCII - Test");
+ InspectorTest.addResult("'" + asciiText + "' (" + asciiText.length + ")");
+ var utf8Text = InspectorFrontendHost.loadResourceSynchronously("data:text/plain;," + encodeURIComponent("UTF8 - \u0422\u0435\u0441\u0442"));
+ InspectorTest.addResult("'" + utf8Text + "' (" + utf8Text.length + ")");
+ InspectorTest.completeTest();
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>Tests that InspectorFrontendHost.loadResourceSynchronously() correctly loads non-ASCII resources.</p>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/inspector/load-resource-synchronously-utf8-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698