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

Side by Side Diff: chrome/browser/web_dev_style/css_checker_test.py

Issue 1585923011: [Template Expressions] changing ${ leader to $i18n{ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix for $i18n comment Created 4 years, 10 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 | « chrome/browser/web_dev_style/css_checker.py ('k') | ui/base/template_expressions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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()
OLDNEW
« no previous file with comments | « chrome/browser/web_dev_style/css_checker.py ('k') | ui/base/template_expressions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698