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

Side by Side Diff: LayoutTests/platform/chromium/fast/text/font-linux-normalize.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 function log(str) {
5 var li = document.createElement("li");
6 li.appendChild(document.createTextNode(str));
7 var console = document.getElementById("console");
8 console.appendChild(li);
9 }
10
11 function convertStringToUnicode(string)
12 {
13 var returnValue = " (character in Unicode value): ";
14 for (var i = 0; i < string.length; ++i)
15 {
16 returnValue += " " + string.charCodeAt(i);
17 }
18 return returnValue;
19 }
20
21 function assertEqual(test_name, actual, expected)
22 {
23 if (actual != expected) {
24 log("==================================");
25 log("FAILED: " + test_name);
26 var actual_string = "actual" + convertStringToUnicode(actual);
27 var expected_string = "expected" + convertStringToUnicode(expected);
28 log(actual_string);
29 log(expected_string);
30 }
31 }
32
33 onload = function()
34 {
35 if (window.testRunner)
36 testRunner.dumpAsText();
37 var div = document.getElementById("div");
38 var string = div.innerHTML;
39 //should be rendered as "\u0958\u0909 \u00e4" in html.
40 assertEqual("devanagari + a with diaeresis", string, "\u0915\u093c\u0909\u00 09a\u0308");
41 }
42 </script>
43 </head>
44 <body>
45 <div id="div">&#x915;&#x093c;&#x0909;&#x9;a&#x308;</div>
46 <ul id="console"></ul>
47 </body>
48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698