OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import css_checker | 6 import css_checker |
7 from os import path as os_path | 7 from os import path as os_path |
8 import re | 8 import re |
9 from sys import path as sys_path | 9 from sys import path as sys_path |
10 import unittest | 10 import unittest |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 @media { /* TODO(dbeam) Fix this case. */ | 178 @media { /* TODO(dbeam) Fix this case. */ |
179 .rule { | 179 .rule { |
180 display: block; | 180 display: block; |
181 }} | 181 }} |
182 | 182 |
183 @-webkit-keyframe blah { | 183 @-webkit-keyframe blah { |
184 from { height: rotate(-10turn); } | 184 from { height: rotate(-10turn); } |
185 100% { height: 500px; } | 185 100% { height: 500px; } |
186 } | 186 } |
187 | 187 |
188 #id { /* ${TemplateExpressions} should be ignored. */ | 188 #id { /* $i18n{TemplateExpressions} should be ignored. */ |
189 rule: ${someValue}; | 189 rule: $i18n{someValue}; |
190 --css-mixin: { | 190 --css-mixin: { |
191 color: red; | 191 color: red; |
192 }; | 192 }; |
193 } | 193 } |
194 | 194 |
195 .paper-wrapper { | 195 .paper-wrapper { |
196 --paper-thinger: { | 196 --paper-thinger: { |
197 background: blue; | 197 background: blue; |
198 }; | 198 }; |
199 } | 199 } |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 </style> | 448 </style> |
449 </head> | 449 </head> |
450 </html>""", """ | 450 </html>""", """ |
451 - Colons (:) should have a space after them. | 451 - Colons (:) should have a space after them. |
452 flex-direction:column; | 452 flex-direction:column; |
453 """, filename='test.html') | 453 """, filename='test.html') |
454 | 454 |
455 | 455 |
456 if __name__ == '__main__': | 456 if __name__ == '__main__': |
457 unittest.main() | 457 unittest.main() |
OLD | NEW |