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

Unified Diff: third_party/pyscss/scss/tests/test_variables.py

Issue 9111023: Pyscss is obsolete with Dart CSS complier; remove all pyscss code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove pyparsing from .gitignore Created 8 years, 12 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 | « third_party/pyscss/scss/tests/test_scss.py ('k') | third_party/pyscss/scss/tool.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pyscss/scss/tests/test_variables.py
diff --git a/third_party/pyscss/scss/tests/test_variables.py b/third_party/pyscss/scss/tests/test_variables.py
deleted file mode 100644
index 31929cb14937b8be5df80a2ad11e7ffacba4cd61..0000000000000000000000000000000000000000
--- a/third_party/pyscss/scss/tests/test_variables.py
+++ /dev/null
@@ -1,50 +0,0 @@
-import unittest
-
-from scss.parser import Stylesheet
-
-
-class TestSCSS( unittest.TestCase ):
-
- def setUp(self):
- self.parser = Stylesheet(options=dict(compress=True))
-
- def test_variables(self):
- src = """
- @vars {
- $blue: #ffdd00 !default;
- $test: rgb(120, 35, 64);
- $test2: rgba(120, 35, 64, .4);
- $property: float;
- $value: left;
- $len: 0px or 5px;
- }
- $margin: 16px;
- $side: top;
- $image: 'test.png';
-
- .content-navigation {
- #{$property}: #{$value};
- border-color: $blue;
- background-color: $test + 5%;
-
-
- background-image: url('/test/' + $image);
- display: -moz-inline-box;
- color: $blue - 9%;
- margin: $len (-$margin * 2 ) -12px;
- }
-
- .border {
- padding-#{$side}: $margin / 2;
- margin: $margin / 2;
- padding-left: -$margin + 2px;
- border-#{$side}: {
- color: $blue;
- }
- color: $test2;
- font: -1.5em + 50px;
- }
- """
- test = ".content-navigation{float:left;display:-moz-inline-box;margin:5px -32px -12px;border-color:#fd0;background-color:#7b1f3e;background-image:url(/test/test.png);color:#f3d40b}.border{margin:8px;padding-top:8px;padding-left:-14px;border-top-color:#fd0;color:rgba(120,35,64,0.40);font:30.5px}"
- out = self.parser.loads(src)
- self.assertEqual(test, out)
« no previous file with comments | « third_party/pyscss/scss/tests/test_scss.py ('k') | third_party/pyscss/scss/tool.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698