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

Side by Side Diff: chrome/browser/web_dev_style/css_checker_test.py

Issue 2073343003: [Presubmit] check styles with include parameters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding test Created 4 years, 6 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 | « chrome/browser/web_dev_style/css_checker.py ('k') | no next file » | 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 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
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 body { 446 body {
447 flex-direction:column; 447 flex-direction:column;
448 } 448 }
449 </style> 449 </style>
450 </head> 450 </head>
451 </html>""", """ 451 </html>""", """
452 - Colons (:) should have a space after them. 452 - Colons (:) should have a space after them.
453 flex-direction:column; 453 flex-direction:column;
454 """, filename='test.html') 454 """, filename='test.html')
455 455
456 def testHtmlIncludeStyle(self):
457 self.VerifyContentsProducesOutput("""<!doctype html>
458 <html>
459 <style include="fake-shared-css">
460 body {
461 flex-direction:column;
462 }
463 </style>
464 </head>
465 </html>""", """
466 - Colons (:) should have a space after them.
467 flex-direction:column;
468 """, filename='test.html')
469
456 470
457 if __name__ == '__main__': 471 if __name__ == '__main__':
458 unittest.main() 472 unittest.main()
OLDNEW
« no previous file with comments | « chrome/browser/web_dev_style/css_checker.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698