Skip to content

Commit 8952a13

Browse files
committed
Merge pull request #669 from mgreter/nuka-cola-3.4.21
Nuked with sass 3.4.21
2 parents 5b70f79 + 8f39501 commit 8952a13

File tree

113 files changed

+126
-138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+126
-138
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ GEM
22
remote: https://rubygems.org/
33
specs:
44
minitest (5.2.0)
5-
sass (3.4.16)
5+
sass (3.4.21)
66

77
PLATFORMS
88
ruby

lib/sass_spec/test_case.rb

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -114,26 +114,17 @@ def _norm_output(css)
114114
# but make sure we do not remove single cariage returns
115115
css = css.gsub(/(?:\r?\n)+/, "\n")
116116
end
117-
def _norm_error(err)
118-
# we dont want to test for linux or windows line-feeds
119-
# but make sure we do not remove single cariage returns
120-
err = err.gsub(/(?:\r?\n)+/, "\n")
121-
# remove all newlines at the end of the file
122-
err = err.sub(/(?:\r?\n)+\z/, "")
123-
end
124117

125118
# cleaning only happens when requested for test
126119
# done by creating `expected.type.clean` flag file
127120
def _clean_output(css)
128-
css.gsub(/ *\{/, " {\n")
129-
.gsub(/([;,]) */, "\\1\n")
130-
.gsub(/ *\} */, " }\n")
131-
.gsub(/;(?:\s*;)+/m, ";")
132-
.gsub(/;\r?\n }/m, " }")
133-
.gsub(/\r?\n/, "\n")
134-
.sub(/(?:\r?\n)+\z/, "")
135-
.strip
121+
_norm_output(css)
122+
.gsub(/[\r\n\s ]+/, " ")
123+
.gsub(/, /, ",")
136124
end
125+
126+
# errors are always cleaned
127+
# we also write them cleaned
137128
def _clean_error(err)
138129
err.gsub(/(?:\/todo_|_todo\/)/, "/") # hide todo pre/suffix
139130
.gsub(/\/libsass\-[a-z]+\-tests\//, "/") # hide test directory

spec/basic/15_arithmetic_and_lists/expected.compact.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
div{a:3;b:3.75;c:1;d:300;e:10.5 2 3;f:123 4 5 6;g:112 8 9 6;h:15 / 3 / 5;i:1;j:1;k:5;l:1;m:1/2,1 2 3 url("www.foo.com/blah.png") blah blah;n:1 2 3,1 2 3 4 5 6,7 8 9;o:9px;p:5px;q:2;r:64em;s:2.5em;t:120.750.8 6/7}
1+
div{a:3;b:3.75;c:1;d:300;e:15/10 2 3;f:123 4 5 6;g:1114/7 8 9 6;h:15 / 3 / 5;i:1;j:1;k:5;l:1;m:1/2,1 2 3 url("www.foo.com/blah.png") blah blah;n:1 2 3,1 2 3 4 5 6,7 8 9;o:9px;p:5px;q:2;r:64em;s:2.5em;t:12.754/5 6/7}

spec/basic/15_arithmetic_and_lists/expected.expanded.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ div {
55
/* shouldn't eval the following "300" */
66
d: 300;
77
/* increasingly jacked-up edge cases that combine arithmetic with lists */
8-
e: 10.5 2 3;
8+
e: 15/10 2 3;
99
f: 123 4 5 6;
10-
g: 112 8 9 6;
10+
g: 1114/7 8 9 6;
1111
/* shouldn't perform the following division */
1212
h: 15 / 3 / 5;
1313
/* should perform the following division now */
@@ -24,5 +24,5 @@ div {
2424
q: 2;
2525
r: 64em;
2626
s: 2.5em;
27-
t: 120.750.8 6/7;
27+
t: 120.754/5 6/7;
2828
}

spec/basic/15_arithmetic_and_lists/expected_output.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ div {
55
/* shouldn't eval the following "300" */
66
d: 300;
77
/* increasingly jacked-up edge cases that combine arithmetic with lists */
8-
e: 10.5 2 3;
8+
e: 15/10 2 3;
99
f: 123 4 5 6;
10-
g: 112 8 9 6;
10+
g: 1114/7 8 9 6;
1111
/* shouldn't perform the following division */
1212
h: 15 / 3 / 5;
1313
/* should perform the following division now */
@@ -24,4 +24,4 @@ div {
2424
q: 2;
2525
r: 64em;
2626
s: 2.5em;
27-
t: 120.750.8 6/7; }
27+
t: 120.754/5 6/7; }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import url("http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700|Oswald");
1+
@import url("http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700|Oswald")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@foo "bar";
1+
@foo "bar"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@foo "bar";
1+
@foo "bar"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@foo {}
1+
@foo{}

0 commit comments

Comments
 (0)