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

Side by Side Diff: chrome/browser/resources/test_presubmit.py

Issue 10115054: [WebUI] Fix 0-length unary term false positive in CSS presubmit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 """Unit tests for Web Development Style Guide checker.""" 6 """Unit tests for Web Development Style Guide checker."""
7 7
8 import os 8 import os
9 import re 9 import re
10 import sys 10 import sys
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 0% { /* Ignore key frames */ 438 0% { /* Ignore key frames */
439 width: 0px; 439 width: 0px;
440 } 440 }
441 10% { 441 10% {
442 width: 10px; 442 width: 10px;
443 } 443 }
444 100% { 444 100% {
445 width: 100px; 445 width: 100px;
446 } 446 }
447 } 447 }
448 .animating { 448
449 .media-button.play > .state0.active,
450 .media-button[state='0'] > .state0.normal /* blah */, /* blee */
451 .media-button[state='0']:not(.disabled):hover > .state0.hover {
449 -webkit-animation: anim 0s; 452 -webkit-animation: anim 0s;
450 -webkit-animation-duration: anim 0ms; 453 -webkit-animation-duration: anim 0ms;
451 -webkit-transform: scale(0%), 454 -webkit-transform: scale(0%),
452 translateX(0deg), 455 translateX(0deg),
453 translateY(0rad), 456 translateY(0rad),
454 translateZ(0grad); 457 translateZ(0grad);
455 background-position-x: 0em; 458 background-position-x: 0em;
456 background-position-y: 0ex; 459 background-position-y: 0ex;
457 border-width: 0em; 460 border-width: 0em;
458 color: hsl(0, 0%, 85%); /* Shouldn't trigger error. */ 461 color: hsl(0, 0%, 85%); /* Shouldn't trigger error. */
(...skipping 22 matching lines...) Expand all
481 opacity: .0; 484 opacity: .0;
482 opacity: 0.0; 485 opacity: 0.0;
483 opacity: 0.; 486 opacity: 0.;
484 border-width: 0mm; 487 border-width: 0mm;
485 height: 0cm; 488 height: 0cm;
486 width: 0in; 489 width: 0in;
487 """) 490 """)
488 491
489 if __name__ == '__main__': 492 if __name__ == '__main__':
490 unittest.main() 493 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698