summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/test_presubmit.py
diff options
context:
space:
mode:
authordbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-07 01:19:18 +0000
committerdbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-07 01:19:18 +0000
commit3a1b97bc9bb9a9bee2b0312f64c5eb3defd4f4ca (patch)
treedc7869f4813fcf528a8a8311fac3d6a161bad7a4 /chrome/browser/resources/test_presubmit.py
parent6f51decb5cbc32b38ab69406de9dd13998d45b99 (diff)
downloadchromium_src-3a1b97bc9bb9a9bee2b0312f64c5eb3defd4f4ca.zip
chromium_src-3a1b97bc9bb9a9bee2b0312f64c5eb3defd4f4ca.tar.gz
chromium_src-3a1b97bc9bb9a9bee2b0312f64c5eb3defd4f4ca.tar.bz2
[web_dev_style] Changing :pseudo-element to ::pseudo-element to match
future-facing CSS3 style. This also helps indicate which :pseudo types are *elements* (actually has a DOM node) vs. *classes* (just used for applying a selector). BUG=None TEST=chrome/browser/resources/test_presubmit.py R=tbreisacher@chromium.org,estade@chromium.org Review URL: https://chromiumcodereview.appspot.com/11441008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171669 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/test_presubmit.py')
-rwxr-xr-xchrome/browser/resources/test_presubmit.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/chrome/browser/resources/test_presubmit.py b/chrome/browser/resources/test_presubmit.py
index 3827ed2..58c311d 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,