Skip to content

Commit f565883

Browse files
committed
Merge pull request #62 from asottile/three_two
Three two Fix #37
2 parents 9fd1820 + 39e4f75 commit f565883

File tree

3 files changed

+30
-16
lines changed

3 files changed

+30
-16
lines changed

docs/changes.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ Version 0.8.0
66

77
To be released.
88

9+
- Follow up the libsass upstream: 3.2.0 --- See the `release note`__
10+
of Libsass.
11+
[:issue:`61`, :issue:`52`, :issue:`56`, :issue:`58`, :issue:`62`
12+
by Anthony Sottile]
13+
14+
- Compact and expanded output styles [:issue:`37`]
15+
- Strings and interpolation closer to Ruby Sass
16+
- The correctness of the generated sourcemap files
17+
- Directive buddling
18+
- Full support for the ``@at-root`` directive
19+
- Full support for ``!global`` variable scoping
20+
21+
__ https://github.com/sass/libsass/releases/tag/3.2.0
22+
923

1024
Version 0.7.0
1125
-------------

sasstests.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def normalize_path(path):
5757
'sources': ['test/a.scss'],
5858
'sourcesContent': [],
5959
'names': [],
60-
'mappings': ';AAKI,IAAI,CAAH;EAHH,gBAAgB,EAAE,KAAM,GAGpB;;EAEH,IAAI,CAAC,CAAC,CAAL;IACA,KAAK,EAAE,IAAK,GADX',
60+
'mappings': ';AAKA,IAAI,CAAC;EAHH,gBAAgB,EAAE,KAAM,GAGpB;;EAEJ,IAAI,CAAC,CAAC,CAAJ;IACA,KAAK,EAAE,IAAK,GADX',
6161
}
6262

6363
B_EXPECTED_CSS = '''\
@@ -457,7 +457,7 @@ def test_build_one(self):
457457
'sources': ['../test/b.scss'],
458458
'sourcesContent': [],
459459
'names': [],
460-
'mappings': ';AACG,CAAC,CAAC,CAAC,CAAF;EACA,SAAS,EAAE,IAAI,GADd',
460+
'mappings': ';AACE,CAAC,CAAC,CAAC,CAAD;EACA,SAAS,EAAE,IAAK,GADf',
461461
},
462462
os.path.join(d, 'css', 'b.scss.css.map')
463463
)
@@ -475,7 +475,7 @@ def test_build_one(self):
475475
'sources': ['../test/d.scss'],
476476
'sourcesContent': [],
477477
'names': [],
478-
'mappings': ';;AAKI,IAAI,CAAH;EAHH,gBAAgB,EAAE,KAAM,GAGpB;;EAEH,IAAI,CAAC,CAAC,CAAL;IACA,IAAI,EAAE,0BAA2B,GADhC',
478+
'mappings': ';;AAKA,IAAI,CAAC;EAHH,gBAAgB,EAAE,KAAM,GAGpB;;EAEJ,IAAI,CAAC,CAAC,CAAJ;IACA,IAAI,EAAE,0BAA2B,GADhC',
479479
},
480480
os.path.join(d, 'css', 'd.scss.css.map')
481481
)
@@ -1017,11 +1017,11 @@ def test_raises(self):
10171017
r'.+'
10181018
r'AssertionError: foo\n\n'
10191019
r' Backtrace:\n'
1020-
r' \tstdin:0, in function `raises`\n'
1021-
r' \tstdin:0\n'
1020+
r' \tstdin:1, in function `raises`\n'
1021+
r' \tstdin:1\n'
10221022
r' on line 1 of stdin\n'
10231023
r'>> a { content: raises\(\); }\n'
1024-
r' --------------------\^\n$'
1024+
r' -------------\^\n$'
10251025
)):
10261026
compile_with_func('a { content: raises(); }')
10271027

@@ -1030,23 +1030,23 @@ def test_warning(self):
10301030
'Error: warning in C function returns_warning: '
10311031
'This is a warning\n'
10321032
' Backtrace:\n'
1033-
' \tstdin:0, in function `returns_warning`\n'
1034-
' \tstdin:0\n'
1033+
' \tstdin:1, in function `returns_warning`\n'
1034+
' \tstdin:1\n'
10351035
' on line 1 of stdin\n'
10361036
'>> a { content: returns_warning(); }\n'
1037-
' -----------------------------^\n'
1037+
' -------------^\n'
10381038
):
10391039
compile_with_func('a { content: returns_warning(); }')
10401040

10411041
def test_error(self):
10421042
with assert_raises_compile_error(
10431043
'Error: error in C function returns_error: This is an error\n'
10441044
' Backtrace:\n'
1045-
' \tstdin:0, in function `returns_error`\n'
1046-
' \tstdin:0\n'
1045+
' \tstdin:1, in function `returns_error`\n'
1046+
' \tstdin:1\n'
10471047
' on line 1 of stdin\n'
10481048
'>> a { content: returns_error(); }\n'
1049-
' ---------------------------^\n'
1049+
' -------------^\n'
10501050
):
10511051
compile_with_func('a { content: returns_error(); }')
10521052

@@ -1066,11 +1066,11 @@ def test_returns_unknown_object(self):
10661066
' - SassWarning\n'
10671067
' - SassError\n\n'
10681068
' Backtrace:\n'
1069-
' \tstdin:0, in function `returns_unknown`\n'
1070-
' \tstdin:0\n'
1069+
' \tstdin:1, in function `returns_unknown`\n'
1070+
' \tstdin:1\n'
10711071
' on line 1 of stdin\n'
10721072
'>> a { content: returns_unknown(); }\n'
1073-
' -----------------------------^\n'
1073+
' -------------^\n'
10741074
):
10751075
compile_with_func('a { content: returns_unknown(); }')
10761076

0 commit comments

Comments
 (0)