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

Unified Diff: third_party/pyscss/scss/tests/test_if.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_functions.py ('k') | third_party/pyscss/scss/tests/test_mixin.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_if.py
diff --git a/third_party/pyscss/scss/tests/test_if.py b/third_party/pyscss/scss/tests/test_if.py
deleted file mode 100644
index d478455c9161764424d82883500a226e3c105fc2..0000000000000000000000000000000000000000
--- a/third_party/pyscss/scss/tests/test_if.py
+++ /dev/null
@@ -1,52 +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_if(self):
- src = """
- $type: monster;
- $test: 9px;
-
- $rec: true;
- $rec2: $rec or true;
- $rec3: $rec or true;
- $rec: $rec2 or $rec3;
-
- @if $test + 2 > 10 {
- @if $rec {
- .test { border: 2px; }
- }
- }
-
- @mixin test($fix: true) {
- @if $fix {
- display: block;
- } @else {
- display: none;
- }
- }
- span {
- @include test(false)
- }
- p {
- @if $type == girl {
- color: pink;
- }
- @else if $type == monster {
- color: red;
- b { border: 2px; }
- }
- @else {
- color: blue;
- }
- }
- """
- test = ".test{border:2px}span{display:none}p{color:#f00}p b{border:2px}"
- out = self.parser.loads(src)
- self.assertEqual(test, out)
« no previous file with comments | « third_party/pyscss/scss/tests/test_functions.py ('k') | third_party/pyscss/scss/tests/test_mixin.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698