OLD | NEW |
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 Loading... |
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> |
OLD | NEW |