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 |
11 import unittest | 11 import unittest |
12 | 12 |
13 test_dir = os.path.dirname(os.path.abspath(__file__)) | 13 test_dir = os.path.dirname(os.path.abspath(__file__)) |
14 sys.path.extend([ | 14 sys.path.extend([ |
15 os.path.normpath(os.path.join(test_dir, '..', '..', '..', 'tools')), | 15 os.path.normpath(os.path.join(test_dir, '..', '..', 'tools')), |
16 os.path.join(test_dir), | 16 os.path.join(test_dir), |
17 ]) | 17 ]) |
18 | 18 |
19 import find_depot_tools # pylint: disable=W0611 | 19 import find_depot_tools # pylint: disable=W0611 |
20 from testing_support.super_mox import SuperMoxTestBase | 20 from testing_support.super_mox import SuperMoxTestBase |
21 from web_dev_style import css_checker, js_checker # pylint: disable=F0401 | 21 from web_dev_style import css_checker, js_checker # pylint: disable=F0401 |
22 | 22 |
23 | 23 |
24 class JsStyleGuideTest(SuperMoxTestBase): | 24 class JsStyleGuideTest(SuperMoxTestBase): |
25 def setUp(self): | 25 def setUp(self): |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 opacity: .0; | 657 opacity: .0; |
658 opacity: 0.0; | 658 opacity: 0.0; |
659 opacity: 0.; | 659 opacity: 0.; |
660 border-width: 0mm; | 660 border-width: 0mm; |
661 height: 0cm; | 661 height: 0cm; |
662 width: 0in; | 662 width: 0in; |
663 """) | 663 """) |
664 | 664 |
665 if __name__ == '__main__': | 665 if __name__ == '__main__': |
666 unittest.main() | 666 unittest.main() |
OLD | NEW |