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

Side by Side Diff: third_party/pyscss/scss/tests/test_extend.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
« no previous file with comments | « third_party/pyscss/scss/tests/test.png ('k') | third_party/pyscss/scss/tests/test_fake.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_extend(self):
12 src = """
13 .error {
14 border: 1px #f00;
15 background-color: #fdd;
16 }
17 .error .intrusion {
18 background-image: url("/image/hacked.png");
19 }
20 .seriousError {
21 @extend .error;
22 border-width: 3px;
23 }
24 """
25 test = ".error, .seriousError{border:1px #f00;background-color:#fdd}.err or .intrusion, .seriousError .intrusion{background-image:url('/image/hacked.png' )}.seriousError{border-width:3px}"
26 out = self.parser.loads(src)
27 self.assertEqual(test, out)
OLDNEW
« no previous file with comments | « third_party/pyscss/scss/tests/test.png ('k') | third_party/pyscss/scss/tests/test_fake.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698