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

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

Issue 1090423007: Serialize <string> with double quotes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 years, 8 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 <meta http-equiv="content-language" content="ja_JP"> 5 <meta http-equiv="content-language" content="ja_JP">
6 <meta http-equiv="content-language" content="zh_CN"> 6 <meta http-equiv="content-language" content="zh_CN">
7 <script src="../../resources/js-test.js"></script> 7 <script src="../../resources/js-test.js"></script>
8 </head> 8 </head>
9 <body> 9 <body>
10 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a >: 10 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a >:
11 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests 11 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests
12 that in the event of multiple content-languages, the final content-language is 12 that in the event of multiple content-languages, the final content-language is
13 used as the pragma-set default language. This expectation may change, see bug. 13 used as the pragma-set default language. This expectation may change, see bug.
14 The HTML5 spec decrees that the first successfully processed one be used. 14 The HTML5 spec decrees that the first successfully processed one be used.
15 Firefox and IE seem to use the final one. 15 Firefox and IE seem to use the final one.
16 </p> 16 </p>
17 <div id="console"></div> 17 <div id="console"></div>
18 <div id="x"></div> 18 <div id="x"></div>
19 <div id="y" lang="ar"></div> 19 <div id="y" lang="ar"></div>
20 <script> 20 <script>
21 function languageOfNode(id) { 21 function languageOfNode(id) {
22 var element = document.getElementById(id); 22 var element = document.getElementById(id);
23 return window.getComputedStyle(element).webkitLocale; 23 return window.getComputedStyle(element).webkitLocale;
24 } 24 }
25 shouldBeEqualToString("languageOfNode('x')", "'zh_CN'"); 25 shouldBeEqualToString("languageOfNode('x')", '"zh_CN"');
26 shouldBeEqualToString("languageOfNode('y')", "'ar'"); 26 shouldBeEqualToString("languageOfNode('y')", '"ar"');
27 </script> 27 </script>
28 </body> 28 </body>
29 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698