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

Side by Side Diff: LayoutTests/fast/css/xml-lang-ignored-in-html.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 <html xmlns="http://www.w3.org/1999/xhtml"> 1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <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 6 <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 <a href="http://webkit.org/b/67586">bug 67586</a>.</p> 7 <a href="http://webkit.org/b/67586">bug 67586</a>.</p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <div xml:lang="ar" id="m1"></div> 9 <div xml:lang="ar" id="m1"></div>
10 <div lang="ko"><div xml:lang="ar" id="n1"></div></div> 10 <div lang="ko"><div xml:lang="ar" id="n1"></div></div>
11 <div lang="ar" id="o1"><div xml:lang="" id="o2"></div></div> 11 <div lang="ar" id="o1"><div xml:lang="" id="o2"></div></div>
12 <script> 12 <script>
13 function languageOfNode(id) { 13 function languageOfNode(id) {
14 var element = document.getElementById(id); 14 var element = document.getElementById(id);
15 return window.getComputedStyle(element).webkitLocale; 15 return window.getComputedStyle(element).webkitLocale;
16 } 16 }
17 shouldBeEqualToString("languageOfNode('m1')", "auto"); 17 shouldBeEqualToString("languageOfNode('m1')", "auto");
18 shouldBeEqualToString("languageOfNode('n1')", "'ko'"); 18 shouldBeEqualToString("languageOfNode('n1')", '"ko"');
19 shouldBeEqualToString("languageOfNode('o1')", "'ar'"); 19 shouldBeEqualToString("languageOfNode('o1')", '"ar"');
20 shouldBeEqualToString("languageOfNode('o2')", "'ar'"); 20 shouldBeEqualToString("languageOfNode('o2')", '"ar"');
21 21
22 var successfullyParsed = true; 22 var successfullyParsed = true;
23 </script> 23 </script>
24 </body> 24 </body>
25 </html> 25 </html>
26 26
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/parsing-text-emphasis-expected.txt ('k') | LayoutTests/fast/css/xml-lang-ignored-in-html-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698