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

Side by Side Diff: LayoutTests/fast/css/selector-text-escape.html

Issue 1253403005: Implement CSS.escape (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix final test Created 5 years, 4 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
« no previous file with comments | « LayoutTests/fast/css/parsing-css-nonascii-expected.txt ('k') | Source/core/css/CSS.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
5 <title>Bug 34529 - [CSSOM] issues with cssText and selectorText</title> 5 <title>Bug 34529 - [CSSOM] issues with cssText and selectorText</title>
6 <style type="text/css"> 6 <style type="text/css">
7 /* Control characters */ 7 /* Control characters */
8 .\01_class { 8 .\01_class {
9 color:green; 9 color:green;
10 } 10 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 <script type="text/javascript"> 86 <script type="text/javascript">
87 description("Test for Bug 34529 - [CSSOM] issues with cssText and selectorText") ; 87 description("Test for Bug 34529 - [CSSOM] issues with cssText and selectorText") ;
88 88
89 var expectedTexts = [ 89 var expectedTexts = [
90 ".\\1 _class", 90 ".\\1 _class",
91 ".\\1f _class", 91 ".\\1f _class",
92 ".\\30 _class", 92 ".\\30 _class",
93 ".\\39 _class", 93 ".\\39 _class",
94 ".-\\30 _class", 94 ".-\\30 _class",
95 ".-\\39 _class", 95 ".-\\39 _class",
96 ".-\\-_class", 96 ".--_class",
97 ".\x81_class", 97 ".\x81_class",
98 ".日本語_class", 98 ".日本語_class",
99 ".𐐀_class", 99 ".𐐀_class",
100 ".azAZ09_-_class", 100 ".azAZ09_-_class",
101 ".\\(\\/\\:\\@\\[\\~_class", 101 ".\\(\\/\\:\\@\\[\\~_class",
102 "#a\\.external\\:visited", 102 "#a\\.external\\:visited",
103 'li[myattr="my\\"value\\\\"]' 103 'li[myattr="my\\"value\\\\"]'
104 ]; 104 ];
105 105
106 var rules = document.styleSheets[0].cssRules; 106 var rules = document.styleSheets[0].cssRules;
107 for (var i = 0; i < expectedTexts.length; i++) { 107 for (var i = 0; i < expectedTexts.length; i++) {
108 shouldBe("rules[" + i + "].selectorText", "expectedTexts[" + i + "]"); 108 shouldBe("rules[" + i + "].selectorText", "expectedTexts[" + i + "]");
109 shouldBe("rules[" + i + "].cssText", "expectedTexts[" + i + "] + ' { color: green; }'"); 109 shouldBe("rules[" + i + "].cssText", "expectedTexts[" + i + "] + ' { color: green; }'");
110 } 110 }
111 </script> 111 </script>
112 </body> 112 </body>
113 </html> 113 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/parsing-css-nonascii-expected.txt ('k') | Source/core/css/CSS.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698