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

Unified Diff: chrome/browser/resources/test_presubmit.py

Issue 9808002: [WebUI] Make CSS presubmit play nice with grit XML. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dpranke review Created 8 years, 9 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/resources/PRESUBMIT.py ('k') | chrome/browser/resources/web_dev_style/css_checker.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/test_presubmit.py
diff --git a/chrome/browser/resources/test_presubmit.py b/chrome/browser/resources/test_presubmit.py
index ff2acdf925d9d226720b025206c0e85fae3c3b43..ed49978c521f7c47d89a4180a9b8c9ec4af0df8f 100755
--- a/chrome/browser/resources/test_presubmit.py
+++ b/chrome/browser/resources/test_presubmit.py
@@ -209,13 +209,31 @@ class CssStyleGuideTest(SuperMoxTestBase):
def testCssAlphaWithAtBlock(self):
self.VerifyContentsProducesOutput("""
+<include src="../shared/css/cr/ui/overlay.css">
+<include src="chrome://resources/totally-cool.css" />
+
/* A hopefully safely ignored comment and @media statement. /**/
@media print {
div {
display: block;
color: red;
}
-}""", """
+<if expr="not is macosx">
+ background-image: url(chrome://resources/BLAH); /* TODO(dbeam): Fix this. */
+ background-color: rgb(235, 239, 249);
+</if>
+<if expr="is_macosx">
+ background-color: white;
+ background-image: url(chrome://resources/BLAH2);
+</if>
+}
+
+<if expr="is_macosx">
+.language-options-right {
+ visibility: hidden;
+ opacity: 1; /* TODO(dbeam): Fix this. */
+}
+</if>""", """
- Alphabetize properties and list vendor specific (i.e. -webkit) above standard.
display: block;
color: red;""")
« no previous file with comments | « chrome/browser/resources/PRESUBMIT.py ('k') | chrome/browser/resources/web_dev_style/css_checker.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698