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

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

Issue 48903019: Delete js-test-post.js. (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 <link rel="stylesheet" href="../js/resources/js-test-style.css"> 5 <link rel="stylesheet" href="../js/resources/js-test-style.css">
6 <script src="../js/resources/js-test-pre.js"></script> 6 <script src="../js/resources/js-test-pre.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a >: 9 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a >:
10 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests 10 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests
11 that a content-language of empty string is ignored. This expectation may 11 that a content-language of empty string is ignored. This expectation may
12 change, see bug. HTML5 decrees that the meta element be ignored in case of the 12 change, see bug. HTML5 decrees that the meta element be ignored in case of the
13 empty string. It's unclear what other browsers do. 13 empty string. It's unclear what other browsers do.
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')", "auto"); 23 shouldBeEqualToString("languageOfNode('x')", "auto");
24 shouldBeEqualToString("languageOfNode('y')", "ar"); 24 shouldBeEqualToString("languageOfNode('y')", "ar");
25 </script> 25 </script>
26 <script src="../js/resources/js-test-post.js"></script>
27 </body> 26 </body>
28 </html> 27 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/content-language-dynamically-removed.html ('k') | LayoutTests/fast/css/content-language-late.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698