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

Side by Side Diff: third_party/pyscss/scss/tests/test_for.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, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 import unittest
2
3 from scss.parser import Stylesheet
4
5
6 class TestSCSS( unittest.TestCase ):
7
8 def setUp(self):
9 self.parser = Stylesheet(options=dict(compress=True))
10
11 def test_for(self):
12 src = """
13 @mixin test($src:2px){
14 $width: $src + 5px;
15 width: $width;
16 }
17 .test {
18 color: blue;
19 @for $i from 1 through 4 {
20 .span-#{$i}{
21 @include test($i); }
22 }
23 }
24
25 @for $i from 1 through 2 {
26 .span-#{$i}{
27 color: red; }
28 }
29 """
30 test = ".test{color:#00f}.test .span-1{width:6px}.test .span-2{width:7px }.test .span-3{width:8px}.test .span-4{width:9px}.span-1{color:#f00}.span-2{colo r:#f00}"
31 out = self.parser.loads(src)
32 self.assertEqual(test, out)
OLDNEW
« no previous file with comments | « third_party/pyscss/scss/tests/test_font_face.py ('k') | third_party/pyscss/scss/tests/test_functions.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698