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

Side by Side Diff: tools/web_dev_style/html_checker_test.py

Issue 2890513003: Move chrome/browser/web_dev_style/ to tools/ to use from more places (Closed)
Patch Set: tsergeant@ review Created 3 years, 7 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
« no previous file with comments | « tools/web_dev_style/html_checker.py ('k') | tools/web_dev_style/js_checker.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 html_checker 6 import html_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 test_util 10 import test_util
11 import unittest 11 import unittest
12 12
13 _HERE = os_path.dirname(os_path.abspath(__file__)) 13 _HERE = os_path.dirname(os_path.abspath(__file__))
14 sys_path.append(os_path.join(_HERE, '..', '..', '..', 'build')) 14 sys_path.append(os_path.join(_HERE, '..', '..', 'build'))
15 15
16 import find_depot_tools # pylint: disable=W0611 16 import find_depot_tools # pylint: disable=W0611
17 from testing_support.super_mox import SuperMoxTestBase 17 from testing_support.super_mox import SuperMoxTestBase
18 18
19 19
20 class HtmlCheckerTest(SuperMoxTestBase): 20 class HtmlCheckerTest(SuperMoxTestBase):
21 def setUp(self): 21 def setUp(self):
22 SuperMoxTestBase.setUp(self) 22 SuperMoxTestBase.setUp(self)
23 23
24 input_api = self.mox.CreateMockAnything() 24 input_api = self.mox.CreateMockAnything()
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 '<setting-checkbox prefs="{{prefs}}">', 205 '<setting-checkbox prefs="{{prefs}}">',
206 '<paper-input tab-index="[[tabIndex_]]">', 206 '<paper-input tab-index="[[tabIndex_]]">',
207 '<div style="font: [[getFont_(item)]]">', 207 '<div style="font: [[getFont_(item)]]">',
208 ] 208 ]
209 for line in lines: 209 for line in lines:
210 self.ShouldPassCheck(line, self.checker.QuotePolymerBindings) 210 self.ShouldPassCheck(line, self.checker.QuotePolymerBindings)
211 211
212 212
213 if __name__ == '__main__': 213 if __name__ == '__main__':
214 unittest.main() 214 unittest.main()
OLDNEW
« no previous file with comments | « tools/web_dev_style/html_checker.py ('k') | tools/web_dev_style/js_checker.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698