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

Side by Side Diff: third_party/pyscss/scss/tests/test_nesting.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_variables(self):
12 src = """
13 table.hl {
14 margin: 2em 0;
15 td.ln {
16 text-align: right;
17
18 li {
19 color: red;
20 }
21 &:hover {
22 width: 20px;
23 }
24 }
25 }
26
27 li {
28 font: {
29 family: serif;
30 weight: bold;
31 size: 1.2em;
32 }
33 }
34 """
35 test = "table.hl{margin:2em 0}table.hl td.ln{text-align:right}table.hl t d.ln li{color:#f00}table.hl td.ln:hover{width:20px}li{font-weight:bold;font-size :1.2em;font-family:serif}"
36 out = self.parser.loads(src)
37 self.assertEqual(test, out)
38
OLDNEW
« no previous file with comments | « third_party/pyscss/scss/tests/test_mixin.py ('k') | third_party/pyscss/scss/tests/test_options.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698