| OLD | NEW |
| 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 -webkit-animation: anim 0s; | 435 -webkit-animation: anim 0s; |
| 436 -webkit-animation-duration: anim 0ms; | 436 -webkit-animation-duration: anim 0ms; |
| 437 -webkit-transform: scale(0%), | 437 -webkit-transform: scale(0%), |
| 438 translateX(0deg), | 438 translateX(0deg), |
| 439 translateY(0rad), | 439 translateY(0rad), |
| 440 translateZ(0grad); | 440 translateZ(0grad); |
| 441 background-position-x: 0em; | 441 background-position-x: 0em; |
| 442 background-position-y: 0ex; | 442 background-position-y: 0ex; |
| 443 border-width: 0em; | 443 border-width: 0em; |
| 444 color: hsl(0, 0%, 85%); /* Shouldn't trigger error. */ | 444 color: hsl(0, 0%, 85%); /* Shouldn't trigger error. */ |
| 445 opacity: .0; |
| 446 opacity: 0.0; |
| 447 opacity: 0.; |
| 445 } | 448 } |
| 446 | 449 |
| 447 @page { | 450 @page { |
| 448 border-width: 0mm; | 451 border-width: 0mm; |
| 449 height: 0cm; | 452 height: 0cm; |
| 450 width: 0in; | 453 width: 0in; |
| 451 }""", """ | 454 }""", """ |
| 452 - Make all zero length terms (i.e. 0px) 0 unless inside of hsl() or part of""" | 455 - Make all zero length terms (i.e. 0px) 0 unless inside of hsl() or part of""" |
| 453 """ @keyframe. | 456 """ @keyframe. |
| 454 width: 0px; | 457 width: 0px; |
| 455 -webkit-animation: anim 0s; | 458 -webkit-animation: anim 0s; |
| 456 -webkit-animation-duration: anim 0ms; | 459 -webkit-animation-duration: anim 0ms; |
| 457 -webkit-transform: scale(0%), | 460 -webkit-transform: scale(0%), |
| 458 translateX(0deg), | 461 translateX(0deg), |
| 459 translateY(0rad), | 462 translateY(0rad), |
| 460 translateZ(0grad); | 463 translateZ(0grad); |
| 461 background-position-x: 0em; | 464 background-position-x: 0em; |
| 462 background-position-y: 0ex; | 465 background-position-y: 0ex; |
| 463 border-width: 0em; | 466 border-width: 0em; |
| 467 opacity: .0; |
| 468 opacity: 0.0; |
| 469 opacity: 0.; |
| 464 border-width: 0mm; | 470 border-width: 0mm; |
| 465 height: 0cm; | 471 height: 0cm; |
| 466 width: 0in; | 472 width: 0in; |
| 467 """) | 473 """) |
| 468 | 474 |
| 469 if __name__ == '__main__': | 475 if __name__ == '__main__': |
| 470 unittest.main() | 476 unittest.main() |
| OLD | NEW |