Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add specs for issue 947. #279

Merged
merged 1 commit into from
Mar 17, 2015
Merged

Add specs for issue 947. #279

merged 1 commit into from
Mar 17, 2015

Conversation

mechanicalduck
Copy link

Add specs for issue 947.

@xzyfer
Copy link
Contributor

xzyfer commented Mar 17, 2015

Thanks @mechanicalduck

xzyfer added a commit that referenced this pull request Mar 17, 2015
@xzyfer xzyfer merged commit af8c622 into sass:master Mar 17, 2015
@@ -0,0 +1,2 @@
@keyframes test { 10% { color: red; } }

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xzyfer, would those extra line feeds at the end of file cause issue with test runners? Normally, if it is CRLF then we add extra line feed so git squashes CRLF+CRLF+EOF (or LF+CRLF+EOF) to a single line feed (LF or CRLF) followed by EOF. If we don't have double CRLF, then git diff on GitHub shows a little red abnormal line termination marker (like this). But in case of double LF, git will retain double linefeeds. IMO, we should avoid this from happening.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine. I force my editor to add a blank line at the end of every file. A lot of specs have this. Also the specs pass on Ruby Sass so I assume all is well.

➜  sass-spec git:(master) ruby sass-spec.rb -c sass -s spec/libsass-todo-issues/issue_963
Recursively searching under directory 'spec/libsass-todo-issues/issue_963' for test files to test 'sass' with.
Sass 3.4.9 (Selective Steve)
Run options: --seed 65106

# Running:

....................................................................................................................................................................

Finished in 57.447308s, 2.8548 runs/s, 8.5644 assertions/s.

164 runs, 492 assertions, 0 failures, 0 errors, 0 skips

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup we have .trim() in node-sass spec runner too. Would be nice if we enforce one rule for all specs. 😎

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the trick is getting our of people's way as much as possible. Trying to manage newlines, indentation etc is barrier to people contributing. Especially when we can automatically fix styling ourselves with some simple tooling. I'm fine to just yolo it for now until we're at parity with Ruby Sass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants