Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Enable UrlCodeHints for LESS/SCSS #9097

Merged
merged 6 commits into from
Oct 6, 2014

Conversation

marcelgerber
Copy link
Contributor

For #9086

@RaymondLim
Copy link
Contributor

@marcelgerber Looks good. Before I merge it, can you add some unit tests for less and scss?

@marcelgerber
Copy link
Contributor Author

Tests added. I hope it's ok to only test SCSS as LESS testing is more difficult than expected, since it requires the LESSSupport extension.


runs(function () {
tearDownTests();
setupTests(testScssPath);
Copy link
Contributor

Choose a reason for hiding this comment

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

@marcelgerber Can we make some changes so that we don't have a dependency between test cases? How about removing beforeFirst() and renaming afterLast() to afterEach() so that we don't need to call tearDownTests() here? Then, we can call setupTests() individually for each test case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.
I actually tried that before and it didn't work. Don't know what I did wrong :)

tearDownTests();
});

it("should hint for background-image: url()", function () {
it("should hint for background-image: url() in CSS", function () {
setupTests(testCssPath);
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 it's safer to wrap it with runs(function () { ...});.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@RaymondLim
Copy link
Contributor

Thanks @marcelgerber. Merging now.

RaymondLim added a commit that referenced this pull request Oct 6, 2014
@RaymondLim RaymondLim merged commit 224af57 into adobe:master Oct 6, 2014
@marcelgerber marcelgerber deleted the less-scss-url-hints branch October 6, 2014 20:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants