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

rhino version not up to date (#1405) #1806

Merged
merged 41 commits into from
Jan 21, 2014
Merged

rhino version not up to date (#1405) #1806

merged 41 commits into from
Jan 21, 2014

Conversation

SomMeri
Copy link
Member

@SomMeri SomMeri commented Jan 15, 2014

This pull request for #1405 adds rhino tests to less.js. Test framework is written in gradle. It calls grunt to build rhino version of less.js and then runs all less.js tests on it.

Testing rhino for the first time:

  • npm install
  • gradlew testRhino

Testing rhino nth time:

  • gradlew testRhino

There is room for improvement:

  • Gradle is very slow and any change in test/index.js have to be rewritten into it.
  • Command line parameters handling code is duplicated in lessc and rhino.js.

However, rewriting this would take a lot more time and it might be more effective to do it after #1732 refactoring.

obecker and others added 30 commits October 27, 2013 12:46
…fic test only (use for example: -Ptest=urls)
1. Build the latest version of the rhino less version
2. Use the latest version to test against

Also update Grunt build to have a build rhino task
SomMeri and others added 11 commits January 12, 2014 14:02
Fix for issue #3: Tests should automatically take latest rhino file
Fix for some tests that were failing on my Mac
This patch adds Support Map Tests to the rhino test suite.  It makes the
following changes:

1.  Fix typo in the Gruntfile.js for the sourcemap-test
2.  Update Gradle build to always build the less-rhino-<version>.js
before running the tests
3. Add a new testRhinoSourceMap and add it to the test list
4. Add a SourceMapRhinoTest that bootstraps SourceMap tests and then
validates them after they run
5. Add hooks in RhinoTest to support custom bootstraping and validation
6. Add compiled version of source-map (version 0.1.31) because Rhino
can't dynamically pull in dependencies
7. Add source-map to the Rhino build with a Header/Footer that wraps
source-map as a less-friendly dependency
8. Update lib/less/rhino.js to properly handle (some) source-map options
and add a new one (--source-map-output-map-file) that will output the
source-map to a separate file (so we can validate our Rhino tests)
9. Remove unused callback in less-test.js
Conflicts:
	.gitattributes
	README.md
	test/index.js
Don't lint source-map since its owned by another project
@deviprsd
Copy link
Contributor

+1

@@ -0,0 +1,1933 @@
/* -*- Mode: js; js-indent-level: 2; -*- */
/*
* Copyright 2011 Mozilla Foundation and contributors
Copy link
Member

Choose a reason for hiding this comment

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

I had a mental note to check the licenses were compatible before including, but reading through it, it looks like we will be okay.

Copy link
Member

Choose a reason for hiding this comment

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

p.s. in future it would be nice to get this and put it in as part of the build process, but we can leave that for the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, I opened issue in less-rhino for it. So, it will not be forgotten when we come back to this next time.

lukeapage added a commit that referenced this pull request Jan 21, 2014
rhino version not up to date (#1405)
@lukeapage lukeapage merged commit 9a0f813 into less:master Jan 21, 2014
@SomMeri SomMeri mentioned this pull request Dec 4, 2014
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.

None yet

5 participants