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

Side by Side Diff: LayoutTests/fast/css/content-language-empty.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 <meta http-equiv="content-language" content=""> 4 <meta http-equiv="content-language" content="">
5 <script src="../../resources/js-test.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 HTTP-EQUIV content-language to -webkit-locale. This particular test tests 9 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests
10 that a content-language of empty string is ignored. This expectation may 10 that a content-language of empty string is ignored. This expectation may
11 change, see bug. HTML5 decrees that the meta element be ignored in case of the 11 change, see bug. HTML5 decrees that the meta element be ignored in case of the
12 empty string. It's unclear what other browsers do. 12 empty string. It's unclear what other browsers do.
13 </p> 13 </p>
14 <div id="console"></div> 14 <div id="console"></div>
15 <div id="x"></div> 15 <div id="x"></div>
16 <div id="y" lang="ar"></div> 16 <div id="y" lang="ar"></div>
17 <script> 17 <script>
18 function languageOfNode(id) { 18 function languageOfNode(id) {
19 var element = document.getElementById(id); 19 var element = document.getElementById(id);
20 return window.getComputedStyle(element).webkitLocale; 20 return window.getComputedStyle(element).webkitLocale;
21 } 21 }
22 shouldBeEqualToString("languageOfNode('x')", "auto"); 22 shouldBeEqualToString("languageOfNode('x')", "auto");
23 shouldBeEqualToString("languageOfNode('y')", "ar"); 23 shouldBeEqualToString("languageOfNode('y')", "'ar'");
24 </script> 24 </script>
25 </body> 25 </body>
26 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698