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

Side by Side Diff: LayoutTests/fast/css/content-language-with-whitespace.html

Issue 49063011: Delete js-test-style.css. js-test-pre.js injects the CSS it needs now. (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=" 4 <meta http-equiv="content-language" content="
5 ja-JP zh_CN 5 ja-JP zh_CN
6 6
7 "> 7 ">
8 <link rel="stylesheet" href="../js/resources/js-test-style.css">
9 <script src="../js/resources/js-test-pre.js"></script> 8 <script src="../js/resources/js-test-pre.js"></script>
10 </head> 9 </head>
11 <body> 10 <body>
12 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a >: 11 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a >:
13 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests 12 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests
14 that the the pragma-set default language is set to the first sequence of 13 that the the pragma-set default language is set to the first sequence of
15 non-whitespace characters of the content-language content. This expectation may 14 non-whitespace characters of the content-language content. This expectation may
16 change, see bug. This expectation is as per the HTML 5 spec. It appears that 15 change, see bug. This expectation is as per the HTML 5 spec. It appears that
17 Firefox does not exactly do this, but trims the leading and trailing 16 Firefox does not exactly do this, but trims the leading and trailing
18 whitespace. It's unclear what IE does. 17 whitespace. It's unclear what IE does.
19 </p> 18 </p>
20 <div id="console"></div> 19 <div id="console"></div>
21 <div id="x"></div> 20 <div id="x"></div>
22 <div id="y" lang="ar"></div> 21 <div id="y" lang="ar"></div>
23 <script> 22 <script>
24 function languageOfNode(id) { 23 function languageOfNode(id) {
25 var element = document.getElementById(id); 24 var element = document.getElementById(id);
26 return window.getComputedStyle(element).webkitLocale; 25 return window.getComputedStyle(element).webkitLocale;
27 } 26 }
28 shouldBeEqualToString("languageOfNode('x')", "ja_JP"); 27 shouldBeEqualToString("languageOfNode('x')", "ja_JP");
29 shouldBeEqualToString("languageOfNode('y')", "ar"); 28 shouldBeEqualToString("languageOfNode('y')", "ar");
30 </script> 29 </script>
31 </body> 30 </body>
32 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698