Luke Page
9829f2409c
When adding a path onto an unquoted url, escape characters that require it. Fixes #831
2012-12-28 21:04:28 +00:00
Luke Page
75a92bdc44
Add tests for static urls
2012-12-28 16:40:06 +00:00
Luke Page
eb5c9fbf5d
Relative url's option for node lessc
2012-12-28 15:25:15 +00:00
Luke Page
6554117643
Add initial browser test suite using phantomjs for headless testing and jasmine
2012-12-16 08:45:51 +00:00
Luke Page
3dcf057fdb
Refix tests to work on unix and windows
2012-11-28 05:58:08 +00:00
Felix Gnass
a59801f50d
Test for escaped paths
2012-11-28 05:49:11 +00:00
Simone Deponti
54c7d12ba3
Fixed path replacements in text a little bit better.
2012-10-07 12:16:09 +01:00
Simone Deponti
dc12632f7b
Completed tests.
...
Made a minor modification to the test runner to best reuse tests
in these cases.
2012-10-07 12:16:09 +01:00
Simone Deponti
959e22f5ff
Added media query support.
...
* env.dumpLineNumbers was being lost when doing "offline" compilation
(within node.js)
* Added documentation for the changed options
* --line-numbers now takes a parameter
(either "comments", "mediaquery" or "all")
* The system can now again output mediaqueries for FireLESS
* Moved comments tests in debug/comments, will duplicate
for mediaquery and for "all"
Everything is still utterly broken though, tests still fail.
2012-10-07 12:16:03 +01:00
Luke Page
538097ec30
Unit tests for debug numbers
2012-10-07 12:16:02 +01:00
Luke Page
bd8679b4c6
Fix error unit tests to run on any computer
2012-08-21 07:20:23 +01:00
Matt
5132c71a5b
Fix error output and extract a helper object for lessc related methods
...
- Fixed a bug, which prevents colors from being set in error messages.
- Created a helper object for lessc methods and moved the stylize function
into it. Changed test/less-test.js and lib/less/index.js to use new methods.
- Removed duplicate definitions of the stylize function.
2012-08-15 18:53:35 +01:00
Luke Page
713cbd2002
support error tests in windows
2012-08-12 13:35:13 +01:00
Luke Page
42b83ef523
Make the test runner accept a argument to restrict the tests running (for debugging). Make the test runner pass the filename so it behaves like lessc - this fixed one of the tests. Also corrected the tests to run given the new format of the message
2012-08-11 22:28:57 +01:00
Luke Page
22b3ee939d
More tests for errors
2012-08-11 16:04:32 +01:00
Luke Page
b809e8eeb2
Fix #861 and introduce tests for errors
2012-08-11 12:00:28 +01:00
Luke Page
a702b282e6
Allow comparing colors and strings. Fix a bug whereby sometimes a mixin-call or import would disappear. This makes the import test fail consistently instead of once out of 8 times depending on async order I think.
2012-08-05 22:47:05 +01:00
Matt
3be05a1c7b
Remove trailing ANSI escape sequences in no-color mode
...
Added a 'reset' code to the stylize function and changed the previously
hard-coded ANSI escape sequence string to a function call.
2012-08-05 11:57:35 +01:00
Marcel Jackwerth
44ec3a151c
use diff in less-test.js to display more info on test failures
2012-08-05 11:44:10 +01:00
Robert Law
fc55458915
Adjusting the line feeds if they're windows based (\r\n) to \n.
2012-08-04 21:33:46 +01:00
Alexis Sellier
eadc0d8704
color() function parses color string
2011-12-18 17:29:40 +01:00
Alexis Sellier
85a681de2f
require 'util' instead of 'sys'
2011-11-14 11:50:56 +01:00
Alexis Sellier
13455c0651
remove require.paths from scripts
2011-11-14 11:46:37 +01:00
Felix Geisendörfer
f44bc6b6fe
Fix test suite
...
Replaced old fs.open/read wrapper with fs.readFile.
2010-10-13 14:09:00 +08:00
cloudhead
4399c9c965
make strings behave like other nodes.
...
- rename 'content' to 'value'
2010-07-25 16:41:05 -04:00
cloudhead
9c390cbdf8
fix optimizations, and errors on multi-line comments
2010-06-01 21:21:59 -04:00
cloudhead
1b9d4e472d
moved index.js to lib/less
2010-05-05 00:23:45 -04:00
cloudhead
0267de4fac
removed lib/ext, moved lib/less.js to /index.js, moved Array/find to tree.find
2010-03-27 02:26:55 -04:00
cloudhead
2b4b0cbdf6
made parser reentrant for import support
2010-03-21 19:17:37 -04:00
cloudhead
9a583ca6ca
no need to pass starting values to toCSS() anymore
2010-03-19 20:14:35 -04:00
cloudhead
4ae9e31c40
parse() is now asynch, and uses a callback
2010-03-19 17:50:35 -04:00
cloudhead
fe732e843c
refactor of module system. Things work properly now, and it's all much cleaner.
2010-03-13 03:34:48 -05:00
cloudhead
c244c01dd2
add title to test output, skip directories
2010-03-07 23:42:19 -05:00
cloudhead
d44bff1da3
added some styling to the tests
2010-03-05 19:36:51 -05:00
cloudhead
2367be123e
remove vows, seeing as Less isnt asynch, there really is not point.
2010-03-05 19:29:46 -05:00
cloudhead
456463368d
function.less now passes
2010-03-05 14:56:47 -05:00
cloudhead
adb2fd2864
try/catch around code-gen, in test. Catch some extra errors too
2010-02-28 01:07:43 -05:00
cloudhead
1e16d0233c
ParseErrors dont raise an exception anymore, we just set parser.error to the value of the error
2010-02-27 14:14:52 -05:00
cloudhead
b60c296e6e
throw a ParseError, instead of just an Error
2010-02-25 22:49:52 -05:00
cloudhead
6d022858be
ws
2010-02-25 19:48:09 -05:00
cloudhead
372ff15d06
remove inspect from test file
2010-02-25 16:19:43 -05:00
cloudhead
43174dd252
preliminary test file
2010-02-25 15:50:46 -05:00