OLD | NEW |
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 |
11 | 11 |
12 _HERE = os_path.dirname(os_path.abspath(__file__)) | 12 _HERE = os_path.dirname(os_path.abspath(__file__)) |
13 sys_path.append(os_path.join(_HERE, '..', '..', '..', 'tools')) | 13 sys_path.append(os_path.join(_HERE, '..', '..', '..', 'build')) |
14 | 14 |
15 import find_depot_tools # pylint: disable=W0611 | 15 import find_depot_tools # pylint: disable=W0611 |
16 from testing_support.super_mox import SuperMoxTestBase | 16 from testing_support.super_mox import SuperMoxTestBase |
17 | 17 |
18 | 18 |
19 class CssCheckerTest(SuperMoxTestBase): | 19 class CssCheckerTest(SuperMoxTestBase): |
20 def setUp(self): | 20 def setUp(self): |
21 SuperMoxTestBase.setUp(self) | 21 SuperMoxTestBase.setUp(self) |
22 | 22 |
23 self.fake_file_name = 'fake.css' | 23 self.fake_file_name = 'fake.css' |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 opacity: 0.0; | 424 opacity: 0.0; |
425 opacity: 0.; | 425 opacity: 0.; |
426 border-width: 0mm; | 426 border-width: 0mm; |
427 height: 0cm; | 427 height: 0cm; |
428 width: 0in; | 428 width: 0in; |
429 """) | 429 """) |
430 | 430 |
431 | 431 |
432 if __name__ == '__main__': | 432 if __name__ == '__main__': |
433 unittest.main() | 433 unittest.main() |
OLD | NEW |