-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly parse CR, CR LF, and FF as newlines everywhere (#626)
Closes #623
- Loading branch information
Showing
5 changed files
with
65 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: sass | ||
version: 1.17.3 | ||
version: 1.17.4-dev | ||
description: A Sass implementation in Dart. | ||
author: Dart Team <[email protected]> | ||
homepage: https://github.com/sass/dart-sass | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright 2019 Google Inc. Use of this source code is governed by an | ||
// MIT-style license that can be found in the LICENSE file or at | ||
// https://opensource.org/licenses/MIT. | ||
|
||
// Almost all CSS output tests should go in sass-spec rather than here. This | ||
// just covers tests that explicitly validate out that's considered too | ||
// implementation-specific to verify in sass-spec. | ||
|
||
import 'package:test/test.dart'; | ||
|
||
import 'package:sass/sass.dart'; | ||
|
||
void main() { | ||
// Regression test for sass/dart-sass#623. This needs to be tested here | ||
// because sass-spec normalizes CR LF newlines. | ||
group("normalizes newlines in a loud comment", () { | ||
test("in SCSS", () { | ||
expect(compileString("/* foo\r\n * bar */"), equals("/* foo\n * bar */")); | ||
}); | ||
|
||
test("in Sass", () { | ||
expect(compileString("/*\r\n foo\r\n bar", syntax: Syntax.sass), | ||
equals("/* foo\n * bar */")); | ||
}); | ||
}); | ||
} |