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 d7f9515ee1cec189d39d0e444cbe04cdd8e485be..6046ea583f741114ed90daef9cba18c50959a53c 100755 |
--- a/chrome/browser/web_dev_style/css_checker_test.py |
+++ b/chrome/browser/web_dev_style/css_checker_test.py |
@@ -461,7 +461,7 @@ body.alternate-logo #logo { |
width: 0in; |
""") |
- def testHtmlInlineStyle(self): |
+ def testInlineStyleInHtml(self): |
self.VerifyContentsProducesOutput("""<!doctype html> |
<html> |
<head> |
@@ -483,10 +483,10 @@ body.alternate-logo #logo { |
flex-direction:column; |
""", filename='test.html') |
- def testHtmlIncludeStyle(self): |
+ def testInlineStyleInHtmlWithIncludes(self): |
self.VerifyContentsProducesOutput("""<!doctype html> |
<html> |
- <style include="fake-shared-css"> |
+ <style include="fake-shared-css other-shared-css"> |
body { |
flex-direction:column; |
} |
@@ -497,6 +497,21 @@ body.alternate-logo #logo { |
flex-direction:column; |
""", filename='test.html') |
+ def testInlineSTyleInHtmlWithTagsInComments(self): |
+ self.VerifyContentsProducesOutput("""<!doctype html> |
+<html> |
+ <style> |
+ body { |
+ /* You better ignore the <tag> in this comment! */ |
+ flex-direction:column; |
+ } |
+ </style> |
+</head> |
+</html>""", """ |
+- Colons (:) should have a space after them. |
+ flex-direction:column; |
+""", filename='test.html') |
+ |
if __name__ == '__main__': |
unittest.main() |