@@ -113,45 +113,7 @@ void sharedTests(Future<TestProcess> runSass(Iterable<String> arguments)) {
113113
114114 group ("silences" , () {
115115 group ("a parse-time deprecation" , () {
116- setUp (
117- () => d.file ("test.scss" , "@if true {} @elseif false {}" ).create (),
118- );
119-
120- test ("in immediate mode" , () async {
121- var sass = await runSass ([
122- "--silence-deprecation=elseif" ,
123- "test.scss" ,
124- ]);
125- expect (sass.stderr, emitsDone);
126- await sass.shouldExit (0 );
127- });
128-
129- test ("in watch mode" , () async {
130- var sass = await runSass ([
131- "--watch" ,
132- "--poll" ,
133- "--silence-deprecation=elseif" ,
134- "test.scss:out.css" ,
135- ]);
136- expect (sass.stderr, emitsDone);
137-
138- await expectLater (
139- sass.stdout,
140- emitsThrough (endsWith ('Compiled test.scss to out.css.' )),
141- );
142- await sass.kill ();
143- });
144-
145- test ("in repl mode" , () async {
146- var sass = await runSass ([
147- "--interactive" ,
148- "--silence-deprecation=strict-unary" ,
149- ]);
150- expect (sass.stderr, emitsDone);
151- sass.stdin.writeln ("4 -(5)" );
152- await expectLater (sass.stdout, emitsInOrder ([">> 4 -(5)" , "-1" ]));
153- await sass.kill ();
154- });
116+ // TODO: Test this again once new deprecations are added post-2.0.0.
155117 });
156118
157119 group ("an evaluation-time deprecation" , () {
@@ -227,43 +189,15 @@ void sharedTests(Future<TestProcess> runSass(Iterable<String> arguments)) {
227189 }, skip: true );
228190
229191 test ("for a silent deprecation" , () async {
230- var sass = await runSass ([
231- "--fatal-deprecation=elseif" ,
232- "--silence-deprecation=elseif" ,
233- "test.scss" ,
234- ]);
235- expect (sass.stderr, emits (contains ("Ignoring setting to silence" )));
236- await sass.shouldExit (0 );
192+ // TODO: Test this again once new deprecations are added post-2.0.0.
237193 });
238194
239195 test ("in watch mode" , () async {
240- var sass = await runSass ([
241- "--watch" ,
242- "--poll" ,
243- "--fatal-deprecation=elseif" ,
244- "--silence-deprecation=elseif" ,
245- "test.scss:out.css" ,
246- ]);
247- expect (sass.stderr, emits (contains ("Ignoring setting to silence" )));
248-
249- await expectLater (
250- sass.stdout,
251- emitsThrough (endsWith ('Compiled test.scss to out.css.' )),
252- );
253- await sass.kill ();
196+ // TODO: Test this again once new deprecations are added post-2.0.0.
254197 });
255198
256199 test ("in repl mode" , () async {
257- var sass = await runSass ([
258- "--interactive" ,
259- "--fatal-deprecation=elseif" ,
260- "--silence-deprecation=elseif" ,
261- ]);
262- await expectLater (
263- sass.stderr,
264- emits (contains ("Ignoring setting to silence" )),
265- );
266- await sass.kill ();
200+ // TODO: Test this again once new deprecations are added post-2.0.0.
267201 });
268202 });
269203
@@ -311,54 +245,7 @@ void sharedTests(Future<TestProcess> runSass(Iterable<String> arguments)) {
311245 });
312246
313247 group ("a parse-time deprecation" , () {
314- setUp (
315- () => d.file ("test.scss" , "@if true {} @elseif false {}" ).create (),
316- );
317-
318- test ("in immediate mode" , () async {
319- var sass = await runSass (["--fatal-deprecation=elseif" , "test.scss" ]);
320- expect (sass.stderr, emits (startsWith ("Error: " )));
321- await sass.shouldExit (65 );
322- });
323-
324- test ("in watch mode" , () async {
325- var sass = await runSass ([
326- "--watch" ,
327- "--poll" ,
328- "--fatal-deprecation=elseif" ,
329- "test.scss:out.css" ,
330- ]);
331- await expectLater (sass.stderr, emits (startsWith ("Error: " )));
332- await expectLater (
333- sass.stdout,
334- emitsInOrder ([
335- "Sass is watching for changes. Press Ctrl-C to stop." ,
336- "" ,
337- ]),
338- );
339- await sass.kill ();
340- });
341-
342- test ("in repl mode" , () async {
343- var sass = await runSass ([
344- "--interactive" ,
345- "--fatal-deprecation=strict-unary" ,
346- ]);
347- sass.stdin.writeln ("4 -(5)" );
348- await expectLater (
349- sass.stdout,
350- emitsInOrder ([
351- ">> 4 -(5)" ,
352- emitsThrough (startsWith ("Error: " )),
353- emitsThrough (contains ("Remove this setting" )),
354- ]),
355- );
356-
357- // Verify that there's no output written for the previous line.
358- sass.stdin.writeln ("1" );
359- await expectLater (sass.stdout, emitsInOrder ([">> 1" , "1" ]));
360- await sass.kill ();
361- });
248+ // TODO: Test this again once new deprecations are added post-2.0.0.
362249 });
363250
364251 group ("an evaluation-time deprecation" , () {
0 commit comments