Index: chrome/browser/resources/test_presubmit.py |
diff --git a/chrome/browser/resources/test_presubmit.py b/chrome/browser/resources/test_presubmit.py |
index 3827ed22b3c0c9c8de1f0abc2fc46a4141ee3b24..58c311d3afa5ee98657f11c3288736f9bd35bb85 100755 |
--- a/chrome/browser/resources/test_presubmit.py |
+++ b/chrome/browser/resources/test_presubmit.py |
@@ -449,6 +449,25 @@ div,a { |
div, span, |
div,a {""") |
+ def testCssPseudoElementDoubleColon(self): |
+ self.VerifyContentsProducesOutput(""" |
+a:href, |
+br::after, |
+::-webkit-scrollbar-thumb, |
+a:not([empty]):hover:focus:active, /* shouldn't catch here and above */ |
+abbr:after, |
+.tree-label:empty:after, |
+b:before, |
+:-webkit-scrollbar { |
+ rule: value; |
+}""", """ |
+- Pseudo-elements should use double colon (i.e. ::after). |
+ :after (should be ::after) |
+ :after (should be ::after) |
+ :before (should be ::before) |
+ :-webkit-scrollbar (should be ::-webkit-scrollbar) |
+ """) |
+ |
def testCssRgbIfNotGray(self): |
self.VerifyContentsProducesOutput(""" |
#abc, |