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

Side by Side Diff: LayoutTests/fast/css/content-language-mapped-to-webkit-locale.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head> 3 <head>
4 <meta http-equiv="content-language" content="zh-CN"> 4 <meta http-equiv="content-language" content="zh-CN">
5 <script src="../js/resources/js-test-pre.js"></script> 5 <script src="../../resources/js-test.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a >: 8 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a >:
9 map content-language to -webkit-locale.</p> 9 map content-language to -webkit-locale.</p>
10 <div id="console"></div> 10 <div id="console"></div>
11 <div id="x"></div> 11 <div id="x"></div>
12 <div id="y" lang="ar"></div> 12 <div id="y" lang="ar"></div>
13 <script> 13 <script>
14 function languageOfNode(id) { 14 function languageOfNode(id) {
15 var element = document.getElementById(id); 15 var element = document.getElementById(id);
16 return window.getComputedStyle(element).webkitLocale; 16 return window.getComputedStyle(element).webkitLocale;
17 } 17 }
18 shouldBeEqualToString("languageOfNode('x')", "zh-CN"); 18 shouldBeEqualToString("languageOfNode('x')", "zh-CN");
19 shouldBeEqualToString("languageOfNode('y')", "ar"); 19 shouldBeEqualToString("languageOfNode('y')", "ar");
20 </script> 20 </script>
21 </body> 21 </body>
22 </html> 22 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/content-language-late.html ('k') | LayoutTests/fast/css/content-language-multiple.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698