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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector/load-resource-synchronously-utf8-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
(Empty)
1 <html>
2 <head>
3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script>
5 function test()
6 {
7 var asciiText = InspectorFrontendHost.loadResourceSynchronously("data:text/p lain;,ASCII - Test");
8 InspectorTest.addResult("'" + asciiText + "' (" + asciiText.length + ")");
9 var utf8Text = InspectorFrontendHost.loadResourceSynchronously("data:text/pl ain;," + encodeURIComponent("UTF8 - \u0422\u0435\u0441\u0442"));
10 InspectorTest.addResult("'" + utf8Text + "' (" + utf8Text.length + ")");
11 InspectorTest.completeTest();
12 }
13 </script>
14 </head>
15 <body onload="runTest()">
16 <p>Tests that InspectorFrontendHost.loadResourceSynchronously() correctly loads non-ASCII resources.</p>
17 </body>
18 </html>
OLDNEW
« 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