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

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

Issue 1257863004: Just remove --css-mixins: {...}; in presubmit checked contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « chrome/browser/web_dev_style/css_checker.py ('k') | no next file » | 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 /* Hello! */div/* Comment here*/{ 141 /* Hello! */div/* Comment here*/{
142 display: block; 142 display: block;
143 } 143 }
144 144
145 blah /* hey! */ 145 blah /* hey! */
146 { 146 {
147 rule: value; 147 rule: value;
148 } 148 }
149 149
150 .mixed-in { 150 .mixed-in {
151 display: none;
151 --css-mixin: { 152 --css-mixin: {
152 color: red; 153 color: red;
153 }; /* This should be ignored. */ 154 }; /* This should be ignored. */
154 } 155 }
155 156
156 .this.is { /* allowed */ 157 .this.is { /* allowed */
157 rule: value; 158 rule: value;
158 }""", """ 159 }""", """
159 - Start braces ({) end a selector, have a space before them and no rules after. 160 - Start braces ({) end a selector, have a space before them and no rules after.
160 div{ 161 div{
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 opacity: 0.0; 427 opacity: 0.0;
427 opacity: 0.; 428 opacity: 0.;
428 border-width: 0mm; 429 border-width: 0mm;
429 height: 0cm; 430 height: 0cm;
430 width: 0in; 431 width: 0in;
431 """) 432 """)
432 433
433 434
434 if __name__ == '__main__': 435 if __name__ == '__main__':
435 unittest.main() 436 unittest.main()
OLDNEW
« no previous file with comments | « chrome/browser/web_dev_style/css_checker.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698