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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/web_dev_style/css_checker.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/web_dev_style/css_checker_test.py
diff --git a/chrome/browser/web_dev_style/css_checker_test.py b/chrome/browser/web_dev_style/css_checker_test.py
index d1a2e6f1bf3d51a7f8894a586decb8af44923e17..77fd421858910067e77b09533ff5aaded58fb844 100755
--- a/chrome/browser/web_dev_style/css_checker_test.py
+++ b/chrome/browser/web_dev_style/css_checker_test.py
@@ -453,6 +453,20 @@ body.alternate-logo #logo {
flex-direction:column;
""", filename='test.html')
+ def testHtmlIncludeStyle(self):
+ self.VerifyContentsProducesOutput("""<!doctype html>
+<html>
+ <style include="fake-shared-css">
+ body {
+ flex-direction:column;
+ }
+ </style>
+</head>
+</html>""", """
+- Colons (:) should have a space after them.
+ flex-direction:column;
+""", filename='test.html')
+
if __name__ == '__main__':
unittest.main()
« 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