Skip to content

Commit 395c249

Browse files
authored
Merge pull request #1449 from sass/merge-master
Merge master into feature.use
2 parents 2919a8e + c49b78b commit 395c249

File tree

31 files changed

+79
-126
lines changed

31 files changed

+79
-126
lines changed

lib/sass_spec/engine_adapter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def compile(sass_filename, precision)
4444
dirname, basename = File.split(sass_filename)
4545
result = capture3_with_timeout(
4646
command, "--precision", precision.to_s, "-t", "expanded",
47-
"-I", File.absolute_path("spec"), *@args&.split(/\s+/), basename,
47+
"-I", File.expand_path("../../../spec", __FILE__), *@args&.split(/\s+/), basename,
4848
binmode: true, timeout: @timeout, chdir: dirname)
4949

5050
if result[:timeout]
@@ -109,7 +109,7 @@ def describe
109109
def compile(sass_filename, precision)
110110
dirname, basename = File.split(sass_filename)
111111
@stdin.puts "!cd #{File.absolute_path(dirname)}"
112-
@stdin.puts("--no-color --no-unicode -I #{File.absolute_path("spec")} " +
112+
@stdin.puts("--no-color --no-unicode -I #{File.expand_path("../../../spec", __FILE__)} " +
113113
"#{@args} #{basename}")
114114
[next_chunk(@stdout), next_chunk(@stderr), next_chunk(@stdout).to_i]
115115
end

spec/core_functions/color/adjust_color/error/bounds.hrx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
a {b: adjust-color(red, $red: -256)}
33

44
<===> red/too_low/error
5-
Error: Expected -256 to be within -255 and 255.
5+
Error: $red: Expected -256 to be within -255 and 255.
66
,
77
1 | a {b: adjust-color(red, $red: -256)}
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -23,7 +23,7 @@ Error: argument `$red` of `adjust-color($color, $red: false, $green: false, $blu
2323
a {b: adjust-color(red, $red: 256)}
2424

2525
<===> red/too_high/error
26-
Error: Expected 256 to be within -255 and 255.
26+
Error: $red: Expected 256 to be within -255 and 255.
2727
,
2828
1 | a {b: adjust-color(red, $red: 256)}
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -44,7 +44,7 @@ Error: argument `$red` of `adjust-color($color, $red: false, $green: false, $blu
4444
a {b: adjust-color(green, $green: -256)}
4545

4646
<===> green/too_low/error
47-
Error: Expected -256 to be within -255 and 255.
47+
Error: $green: Expected -256 to be within -255 and 255.
4848
,
4949
1 | a {b: adjust-color(green, $green: -256)}
5050
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -65,7 +65,7 @@ Error: argument `$green` of `adjust-color($color, $red: false, $green: false, $b
6565
a {b: adjust-color(green, $green: 256)}
6666

6767
<===> green/too_high/error
68-
Error: Expected 256 to be within -255 and 255.
68+
Error: $green: Expected 256 to be within -255 and 255.
6969
,
7070
1 | a {b: adjust-color(green, $green: 256)}
7171
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -86,7 +86,7 @@ Error: argument `$green` of `adjust-color($color, $red: false, $green: false, $b
8686
a {b: adjust-color(blue, $blue: -256)}
8787

8888
<===> blue/too_low/error
89-
Error: Expected -256 to be within -255 and 255.
89+
Error: $blue: Expected -256 to be within -255 and 255.
9090
,
9191
1 | a {b: adjust-color(blue, $blue: -256)}
9292
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -107,7 +107,7 @@ Error: argument `$blue` of `adjust-color($color, $red: false, $green: false, $bl
107107
a {b: adjust-color(blue, $blue: 256)}
108108

109109
<===> blue/too_high/error
110-
Error: Expected 256 to be within -255 and 255.
110+
Error: $blue: Expected 256 to be within -255 and 255.
111111
,
112112
1 | a {b: adjust-color(blue, $blue: 256)}
113113
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -128,7 +128,7 @@ Error: argument `$blue` of `adjust-color($color, $red: false, $green: false, $bl
128128
a {b: adjust-color(red, $saturation: -100.001)}
129129

130130
<===> saturation/too_low/error
131-
Error: Expected -100.001 to be within -100 and 100.
131+
Error: $saturation: Expected -100.001 to be within -100 and 100.
132132
,
133133
1 | a {b: adjust-color(red, $saturation: -100.001)}
134134
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -149,7 +149,7 @@ Error: argument `$saturation` of `adjust-color($color, $red: false, $green: fals
149149
a {b: adjust-color(red, $saturation: 100.001)}
150150

151151
<===> saturation/too_high/error
152-
Error: Expected 100.001 to be within -100 and 100.
152+
Error: $saturation: Expected 100.001 to be within -100 and 100.
153153
,
154154
1 | a {b: adjust-color(red, $saturation: 100.001)}
155155
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -170,7 +170,7 @@ Error: argument `$saturation` of `adjust-color($color, $red: false, $green: fals
170170
a {b: adjust-color(red, $lightness: -100.001)}
171171

172172
<===> lightness/too_low/error
173-
Error: Expected -100.001 to be within -100 and 100.
173+
Error: $lightness: Expected -100.001 to be within -100 and 100.
174174
,
175175
1 | a {b: adjust-color(red, $lightness: -100.001)}
176176
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -191,7 +191,7 @@ Error: argument `$lightness` of `adjust-color($color, $red: false, $green: false
191191
a {b: adjust-color(red, $lightness: 100.001)}
192192

193193
<===> lightness/too_high/error
194-
Error: Expected 100.001 to be within -100 and 100.
194+
Error: $lightness: Expected 100.001 to be within -100 and 100.
195195
,
196196
1 | a {b: adjust-color(red, $lightness: 100.001)}
197197
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -212,7 +212,7 @@ Error: argument `$lightness` of `adjust-color($color, $red: false, $green: false
212212
a {b: adjust-color(red, $alpha: -1.001)}
213213

214214
<===> alpha/too_low/error
215-
Error: Expected -1.001 to be within -1 and 1.
215+
Error: $alpha: Expected -1.001 to be within -1 and 1.
216216
,
217217
1 | a {b: adjust-color(red, $alpha: -1.001)}
218218
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -233,7 +233,7 @@ Error: argument `$alpha` of `adjust-color($color, $red: false, $green: false, $b
233233
a {b: adjust-color(red, $alpha: 1.001)}
234234

235235
<===> alpha/too_high/error
236-
Error: Expected 1.001 to be within -1 and 1.
236+
Error: $alpha: Expected 1.001 to be within -1 and 1.
237237
,
238238
1 | a {b: adjust-color(red, $alpha: 1.001)}
239239
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

spec/core_functions/color/change_color/error/bounds.hrx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
a {b: change-color(red, $red: -1)}
33

44
<===> red/too_low/error
5-
Error: Expected -1 to be within 0 and 255.
5+
Error: $red: Expected -1 to be within 0 and 255.
66
,
77
1 | a {b: change-color(red, $red: -1)}
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -23,7 +23,7 @@ Error: argument `$red` of `change-color($color, $red: false, $green: false, $blu
2323
a {b: change-color(red, $red: 256)}
2424

2525
<===> red/too_high/error
26-
Error: Expected 256 to be within 0 and 255.
26+
Error: $red: Expected 256 to be within 0 and 255.
2727
,
2828
1 | a {b: change-color(red, $red: 256)}
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -44,7 +44,7 @@ Error: argument `$red` of `change-color($color, $red: false, $green: false, $blu
4444
a {b: change-color(green, $green: -1)}
4545

4646
<===> green/too_low/error
47-
Error: Expected -1 to be within 0 and 255.
47+
Error: $green: Expected -1 to be within 0 and 255.
4848
,
4949
1 | a {b: change-color(green, $green: -1)}
5050
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -65,7 +65,7 @@ Error: argument `$green` of `change-color($color, $red: false, $green: false, $b
6565
a {b: change-color(green, $green: 256)}
6666

6767
<===> green/too_high/error
68-
Error: Expected 256 to be within 0 and 255.
68+
Error: $green: Expected 256 to be within 0 and 255.
6969
,
7070
1 | a {b: change-color(green, $green: 256)}
7171
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -86,7 +86,7 @@ Error: argument `$green` of `change-color($color, $red: false, $green: false, $b
8686
a {b: change-color(blue, $blue: -1)}
8787

8888
<===> blue/too_low/error
89-
Error: Expected -1 to be within 0 and 255.
89+
Error: $blue: Expected -1 to be within 0 and 255.
9090
,
9191
1 | a {b: change-color(blue, $blue: -1)}
9292
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -107,7 +107,7 @@ Error: argument `$blue` of `change-color($color, $red: false, $green: false, $bl
107107
a {b: change-color(blue, $blue: 256)}
108108

109109
<===> blue/too_high/error
110-
Error: Expected 256 to be within 0 and 255.
110+
Error: $blue: Expected 256 to be within 0 and 255.
111111
,
112112
1 | a {b: change-color(blue, $blue: 256)}
113113
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -128,7 +128,7 @@ Error: argument `$blue` of `change-color($color, $red: false, $green: false, $bl
128128
a {b: change-color(red, $saturation: -0.001)}
129129

130130
<===> saturation/too_low/error
131-
Error: Expected -0.001 to be within 0 and 100.
131+
Error: $saturation: Expected -0.001 to be within 0 and 100.
132132
,
133133
1 | a {b: change-color(red, $saturation: -0.001)}
134134
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -149,7 +149,7 @@ Error: argument `$saturation` of `change-color($color, $red: false, $green: fals
149149
a {b: change-color(red, $saturation: 100.001)}
150150

151151
<===> saturation/too_high/error
152-
Error: Expected 100.001 to be within 0 and 100.
152+
Error: $saturation: Expected 100.001 to be within 0 and 100.
153153
,
154154
1 | a {b: change-color(red, $saturation: 100.001)}
155155
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -170,7 +170,7 @@ Error: argument `$saturation` of `change-color($color, $red: false, $green: fals
170170
a {b: change-color(red, $lightness: -0.001)}
171171

172172
<===> lightness/too_low/error
173-
Error: Expected -0.001 to be within 0 and 100.
173+
Error: $lightness: Expected -0.001 to be within 0 and 100.
174174
,
175175
1 | a {b: change-color(red, $lightness: -0.001)}
176176
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -191,7 +191,7 @@ Error: argument `$lightness` of `change-color($color, $red: false, $green: false
191191
a {b: change-color(red, $lightness: 100.001)}
192192

193193
<===> lightness/too_high/error
194-
Error: Expected 100.001 to be within 0 and 100.
194+
Error: $lightness: Expected 100.001 to be within 0 and 100.
195195
,
196196
1 | a {b: change-color(red, $lightness: 100.001)}
197197
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -212,7 +212,7 @@ Error: argument `$lightness` of `change-color($color, $red: false, $green: false
212212
a {b: change-color(red, $alpha: -0.001)}
213213

214214
<===> alpha/too_low/error
215-
Error: Expected -0.001 to be within 0 and 1.
215+
Error: $alpha: Expected -0.001 to be within 0 and 1.
216216
,
217217
1 | a {b: change-color(red, $alpha: -0.001)}
218218
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -233,7 +233,7 @@ Error: argument `$alpha` of `change-color($color, $red: false, $green: false, $b
233233
a {b: change-color(red, $alpha: 1.001)}
234234

235235
<===> alpha/too_high/error
236-
Error: Expected 1.001 to be within 0 and 1.
236+
Error: $alpha: Expected 1.001 to be within 0 and 1.
237237
,
238238
1 | a {b: change-color(red, $alpha: 1.001)}
239239
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

spec/core_functions/color/darken.hrx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Error: argument `$amount` of `darken($color, $amount)` must be a number
154154
a {b: darken(red, -0.001)}
155155

156156
<===> error/bounds/too_low/error
157-
Error: Expected -0.001 to be within 0 and 100.
157+
Error: $amount: Expected -0.001 to be within 0 and 100.
158158
,
159159
1 | a {b: darken(red, -0.001)}
160160
| ^^^^^^^^^^^^^^^^^^^
@@ -175,7 +175,7 @@ Error: argument `$amount` of `darken($color, $amount)` must be between -0 and 10
175175
a {b: darken(red, 100.001)}
176176

177177
<===> error/bounds/too_high/error
178-
Error: Expected 100.001 to be within 0 and 100.
178+
Error: $amount: Expected 100.001 to be within 0 and 100.
179179
,
180180
1 | a {b: darken(red, 100.001)}
181181
| ^^^^^^^^^^^^^^^^^^^^

spec/core_functions/color/desaturate.hrx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Error: argument `$amount` of `desaturate($color, $amount)` must be a number
164164
a {b: desaturate(plum, -0.001)}
165165

166166
<===> error/bounds/too_low/error
167-
Error: Expected -0.001 to be within 0 and 100.
167+
Error: $amount: Expected -0.001 to be within 0 and 100.
168168
,
169169
1 | a {b: desaturate(plum, -0.001)}
170170
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -185,7 +185,7 @@ Error: argument `$amount` of `desaturate($color, $amount)` must be between -0 an
185185
a {b: desaturate(plum, 100.001)}
186186

187187
<===> error/bounds/too_high/error
188-
Error: Expected 100.001 to be within 0 and 100.
188+
Error: $amount: Expected 100.001 to be within 0 and 100.
189189
,
190190
1 | a {b: desaturate(plum, 100.001)}
191191
| ^^^^^^^^^^^^^^^^^^^^^^^^^

spec/core_functions/color/fade_in.hrx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Error: argument `$amount` of `fade-in($color, $amount)` must be a number
144144
a {b: fade-in(red, -0.001)}
145145

146146
<===> error/bounds/too_low/error
147-
Error: Expected -0.001 to be within 0 and 1.
147+
Error: $amount: Expected -0.001 to be within 0 and 1.
148148
,
149149
1 | a {b: fade-in(red, -0.001)}
150150
| ^^^^^^^^^^^^^^^^^^^^
@@ -165,7 +165,7 @@ Error: argument `$amount` of `fade-in($color, $amount)` must be between -0 and 1
165165
a {b: fade-in(red, 1.001)}
166166

167167
<===> error/bounds/too_high/error
168-
Error: Expected 1.001 to be within 0 and 1.
168+
Error: $amount: Expected 1.001 to be within 0 and 1.
169169
,
170170
1 | a {b: fade-in(red, 1.001)}
171171
| ^^^^^^^^^^^^^^^^^^^

spec/core_functions/color/fade_out.hrx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Error: argument `$amount` of `fade-out($color, $amount)` must be a number
144144
a {b: fade-out(red, -0.001)}
145145

146146
<===> error/bounds/too_low/error
147-
Error: Expected -0.001 to be within 0 and 1.
147+
Error: $amount: Expected -0.001 to be within 0 and 1.
148148
,
149149
1 | a {b: fade-out(red, -0.001)}
150150
| ^^^^^^^^^^^^^^^^^^^^^
@@ -165,7 +165,7 @@ Error: argument `$amount` of `fade-out($color, $amount)` must be between -0 and
165165
a {b: fade-out(red, 1.001)}
166166

167167
<===> error/bounds/too_high/error
168-
Error: Expected 1.001 to be within 0 and 1.
168+
Error: $amount: Expected 1.001 to be within 0 and 1.
169169
,
170170
1 | a {b: fade-out(red, 1.001)}
171171
| ^^^^^^^^^^^^^^^^^^^^

spec/core_functions/color/invert.hrx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Error: argument `$weight` of `invert($color, $weight: 100%)` must be a number
222222
a {b: invert(red, -0.001)}
223223

224224
<===> error/bounds/too_low/error
225-
Error: Expected -0.001 to be within 0 and 100.
225+
Error: $weight: Expected -0.001 to be within 0 and 100.
226226
,
227227
1 | a {b: invert(red, -0.001)}
228228
| ^^^^^^^^^^^^^^^^^^^
@@ -243,7 +243,7 @@ Error: argument `$weight` of `invert($color, $weight: 100%)` must be between -0
243243
a {b: invert(red, 100.001)}
244244

245245
<===> error/bounds/too_high/error
246-
Error: Expected 100.001 to be within 0 and 100.
246+
Error: $weight: Expected 100.001 to be within 0 and 100.
247247
,
248248
1 | a {b: invert(red, 100.001)}
249249
| ^^^^^^^^^^^^^^^^^^^^

spec/core_functions/color/lighten.hrx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Error: argument `$amount` of `lighten($color, $amount)` must be a number
154154
a {b: lighten(red, -0.001)}
155155

156156
<===> error/bounds/too_low/error
157-
Error: Expected -0.001 to be within 0 and 100.
157+
Error: $amount: Expected -0.001 to be within 0 and 100.
158158
,
159159
1 | a {b: lighten(red, -0.001)}
160160
| ^^^^^^^^^^^^^^^^^^^^
@@ -175,7 +175,7 @@ Error: argument `$amount` of `lighten($color, $amount)` must be between -0 and 1
175175
a {b: lighten(red, 100.001)}
176176

177177
<===> error/bounds/too_high/error
178-
Error: Expected 100.001 to be within 0 and 100.
178+
Error: $amount: Expected 100.001 to be within 0 and 100.
179179
,
180180
1 | a {b: lighten(red, 100.001)}
181181
| ^^^^^^^^^^^^^^^^^^^^^

spec/core_functions/color/mix.hrx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ Error: argument `$weight` of `mix($color1, $color2, $weight: 50%)` must be a num
326326
a {b: mix(red, blue, -0.001)}
327327

328328
<===> error/bounds/too_low/error
329-
Error: Expected -0.001 to be within 0 and 100.
329+
Error: $weight: Expected -0.001 to be within 0 and 100.
330330
,
331331
1 | a {b: mix(red, blue, -0.001)}
332332
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -347,7 +347,7 @@ Error: argument `$weight` of `mix($color1, $color2, $weight: 50%)` must be betwe
347347
a {b: mix(red, blue, 100.001)}
348348

349349
<===> error/bounds/too_high/error
350-
Error: Expected 100.001 to be within 0 and 100.
350+
Error: $weight: Expected 100.001 to be within 0 and 100.
351351
,
352352
1 | a {b: mix(red, blue, 100.001)}
353353
| ^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)