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

Side by Side Diff: LayoutTests/fast/css/xml-lang-ignored-in-html.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 <html xmlns="http://www.w3.org/1999/xhtml"> 1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head> 2 <head>
3 <link rel="stylesheet" href="../js/resources/js-test-style.css"> 3 <link rel="stylesheet" href="../js/resources/js-test-style.css">
4 <script src="../js/resources/js-test-pre.js"></script> 4 <script src="../js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p>This tests that the attribute in no namespace with no prefix and with the lit eral localname "xml:lang" is ignored in HTML. See 7 <p>This tests that the attribute in no namespace with no prefix and with the lit eral localname "xml:lang" is ignored in HTML. See
8 <a href="http://webkit.org/b/67586">bug 67586</a>.</p> 8 <a href="http://webkit.org/b/67586">bug 67586</a>.</p>
9 <div id="console"></div> 9 <div id="console"></div>
10 <div xml:lang="ar" id="m1"></div> 10 <div xml:lang="ar" id="m1"></div>
11 <div lang="ko"><div xml:lang="ar" id="n1"></div></div> 11 <div lang="ko"><div xml:lang="ar" id="n1"></div></div>
12 <div lang="ar" id="o1"><div xml:lang="" id="o2"></div></div> 12 <div lang="ar" id="o1"><div xml:lang="" id="o2"></div></div>
13 <script> 13 <script>
14 function languageOfNode(id) { 14 function languageOfNode(id) {
15 var element = document.getElementById(id); 15 var element = document.getElementById(id);
16 return window.getComputedStyle(element).webkitLocale; 16 return window.getComputedStyle(element).webkitLocale;
17 } 17 }
18 shouldBeEqualToString("languageOfNode('m1')", "auto"); 18 shouldBeEqualToString("languageOfNode('m1')", "auto");
19 shouldBeEqualToString("languageOfNode('n1')", "ko"); 19 shouldBeEqualToString("languageOfNode('n1')", "ko");
20 shouldBeEqualToString("languageOfNode('o1')", "ar"); 20 shouldBeEqualToString("languageOfNode('o1')", "ar");
21 shouldBeEqualToString("languageOfNode('o2')", "ar"); 21 shouldBeEqualToString("languageOfNode('o2')", "ar");
22 22
23 var successfullyParsed = true; 23 var successfullyParsed = true;
24 </script> 24 </script>
25 <script src="../js/resources/js-test-post.js"></script>
26 </body> 25 </body>
27 </html> 26 </html>
28 27
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/variables/cssom-update.html ('k') | LayoutTests/fast/css/xml-stylesheet-alternate-no-title.xhtml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698