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

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

Issue 253543002: web_dev_style: check webui browser tests as well. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 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
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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 opacity: .0; 624 opacity: .0;
625 opacity: 0.0; 625 opacity: 0.0;
626 opacity: 0.; 626 opacity: 0.;
627 border-width: 0mm; 627 border-width: 0mm;
628 height: 0cm; 628 height: 0cm;
629 width: 0in; 629 width: 0in;
630 """) 630 """)
631 631
632 if __name__ == '__main__': 632 if __name__ == '__main__':
633 unittest.main() 633 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698