Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / font-linux-normalize.html
blob2dc1031cae2db556e74054b534c6a7dd5d6a694d
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);
11 function convertStringToUnicode(string)
13 var returnValue = " (character in Unicode value): ";
14 for (var i = 0; i < string.length; ++i)
16 returnValue += " " + string.charCodeAt(i);
18 return returnValue;
21 function assertEqual(test_name, actual, expected)
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);
33 onload = function()
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\u0009a\u0308");
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>