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

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

Issue 973623002: Fix serialization of content property to always quote (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add another method Created 5 years, 9 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
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 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a >: 7 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a >:
8 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests 8 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests
9 that a content-language is used even if it appears at the end of the document. 9 that a content-language is used even if it appears at the end of the document.
10 This expectation may change, see bug. According to the HTML 5 spec, a meta 10 This expectation may change, see bug. According to the HTML 5 spec, a meta
11 element should be processed when it is inserted into the document, regardless 11 element should be processed when it is inserted into the document, regardless
12 of where. IE and Firefox also seem to process the content-language at the end 12 of where. IE and Firefox also seem to process the content-language at the end
13 of the document. 13 of the document.
14 </p> 14 </p>
15 <div id="console"></div> 15 <div id="console"></div>
16 <div id="x"></div> 16 <div id="x"></div>
17 <div id="y" lang="ar"></div> 17 <div id="y" lang="ar"></div>
18 <script> 18 <script>
19 function languageOfNode(id) { 19 function languageOfNode(id) {
20 var element = document.getElementById(id); 20 var element = document.getElementById(id);
21 return window.getComputedStyle(element).webkitLocale; 21 return window.getComputedStyle(element).webkitLocale;
22 } 22 }
23 shouldBeEqualToString("languageOfNode('x')", "ja-JP"); 23 shouldBeEqualToString("languageOfNode('x')", "'ja-JP'");
24 shouldBeEqualToString("languageOfNode('y')", "ar"); 24 shouldBeEqualToString("languageOfNode('y')", "'ar'");
25 </script> 25 </script>
26 <meta http-equiv="content-language" content="ja-JP"> 26 <meta http-equiv="content-language" content="ja-JP">
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698