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

Side by Side Diff: LayoutTests/fast/text/backslash-to-yen-sign.html

Issue 27030014: Remove Backslash-as-JPY hack (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: TextCodec/Encoding added Created 7 years, 2 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 <!DOCTYPE html>
2 <html>
3
4 <head>
5 <meta charset="UTF-8">
6 <script>
7
8 function test()
9 {
10 var FONT_AND_EXPECTATIONS = [
11 [ null, "backslash" ],
12 [ "MS PGothic", "yen sign" ],
13 [ "MS Gothic", "yen sign" ],
14 [ "MS PMincho", "yen sign" ],
15 [ "MS Mincho", "yen sign" ],
16 [ "Meiryo", "yen sign" ],
17 [ "MS Pゴシック", "yen sign" ],
18 [ "MS ゴシック", "yen sign" ],
19 [ "MS P明朝", "yen sign" ],
20 [ "MS 明朝", "yen sign" ],
21 [ "メイリオ", "yen sign" ],
22 [ "Times", "backslash" ],
23 [ "foobar", "backslash" ]
24 ];
25
26 for (var i = 0; FONT_AND_EXPECTATIONS[i]; i++) {
27 var fontName = FONT_AND_EXPECTATIONS[i][0];
28 var expectation = FONT_AND_EXPECTATIONS[i][1];
29 var element = document.createElement("div");
30 if (fontName)
31 element.style.fontFamily = fontName;
32
33 if (fontName)
34 text = 'Using font "' + fontName + '". ';
35 else
36 text = 'No font is specified. ';
37 text += 'expected: ' + expectation + ', actual: ' + '\\';
38 element.innerHTML = text;
39 document.body.appendChild(element);
40 }
41 }
42
43 </script>
44 </head>
45
46 <body onload="test();">
47 </body>
48
49 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/HTMLOptionElement/option-text.html ('k') | LayoutTests/fast/text/backslash-to-yen-sign-dynamic.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698