Commit Graph

68 Commits

Author SHA1 Message Date
Luke Page
ba3d24a352 Support urls begining // which are unquoted. Fixes #2238 2014-10-21 13:01:01 +01:00
Luke Page
845ec72131 improve error reporting 2014-10-19 16:48:04 +01:00
Luke Page
b8736e0b67 whitespace 2014-10-19 10:01:18 +01:00
Luke Page
e715057643 Delete un-needed files 2014-10-19 10:00:59 +01:00
Luke Page
8562e2cad8 Upgrade to jasmine v2 2014-10-18 23:14:04 +01:00
Luke Page
55baaa5db1 use page load finished in tests 2014-10-18 07:48:47 +01:00
Luke Page
9be165ba8a Fix tests by adding logger to record messages in test common js 2014-10-07 07:42:35 +01:00
Luke Page
3af09233b1 Fix final weird error - in phantom only some console.log calls are going missing? 2014-10-05 10:42:38 +01:00
Luke Page
f85f253586 merge from master 2014-08-14 17:27:16 +01:00
Luke Page
7dfc0cf9b0 Merge branch 'whitespace' of github.com:XhmikosR/less.js into 2_0_0
Conflicts:
	lib/less/functions.js
	lib/less/index.js
	lib/less/tree/anonymous.js
	lib/less/tree/media.js
	lib/less/tree/mixin.js
2014-03-02 12:36:49 +00:00
XhmikosR
7efbcd31cf Trim trailing whitespace. 2014-03-02 14:06:26 +02:00
Luke Page
2ac8617987 Fix the browser tests 2014-03-01 17:25:01 +00:00
Luke Page
f65da55168 Fix tests 2014-02-24 09:40:18 +00:00
Luke Page
e8c78d9d40 Merge branch 'master' into 2_0_0
Conflicts:
	lib/less/browser.js
	lib/less/parser.js
2014-02-23 17:38:39 +00:00
Cloud Chen
0a7954355a Implement postProcessor callback feature for less.ls browser environment #1835
Add `jasmine:postProcessor` task and corresponding spec as well
2014-02-03 00:07:38 +08:00
seven-phases-max
3322609de5 More consistent named colour variables. 2014-01-23 16:08:10 +04:00
Doug Haber
ebfdf7dbc3 innerText isn't available in ff/chrome/etc so use innerHTML 2014-01-09 22:07:07 -05:00
Mohammad Samman
e3a78458ad FIXES ISSUE #1453: let ModifyVar change numerical variables 2013-12-06 00:47:14 -08:00
Christian Hammond
daec7dff1c Support specifying custom variables when calling lessc and less.js.
Both lessc and less.js can now be provided with global variables that
all .less files will have immediate access to. This can be used to
provide, for example, a base path for an @import, signed URLs offering
temporary access to an image on S3, or anything else.

lessc has two new parameters, --global-var and --modify-var. Both take
a value of the form "varname=value". --global-var declares variables
immediately before the content of the .less files, and --modify-var
declares them after.

--global-var is used when rules, imports, or other variables will depend
on the provided variable.

--modify-var is used to override a variable declared within the .less
file.

less.js's equivalent for global variables is less.globalVars. This can
be set before loading less.js. There is no new requivalent to
--modify-var, as less.modifyVars can be used for that purpose.
2013-11-14 02:58:34 -08:00
Luke Page
0465398ab6 throw an error when the unit function is passed bad input. Fixes #1426 2013-09-18 05:54:38 +01:00
Luke Page
ea83b9147b Fix the final tests and get grunt to stop f the javascript tests fail 2013-09-09 08:00:48 +01:00
Luke Page
e097c189cb fix another browser test 2013-09-05 17:07:59 +01:00
Luke Page
75de5059f9 Fix more browser tests under grunt 2013-09-05 13:49:55 +01:00
Luke Page
fc6f9d81bd Fix most of the browser tests running through grunt 2013-09-05 13:16:41 +01:00
Luke Page
c139e691ad Merge branch '1.5.0-wip' of https://github.com/upstage/less.js
Conflicts:
	.gitignore
	.jshintrc
	CHANGELOG.md
	Makefile
	build/browser-header.js
	lib/less/browser.js
	lib/less/functions.js
	lib/less/rhino.js
	lib/less/tree/dimension.js
	lib/less/tree/value.js
	package.json
	test/browser-test-prepare.js
	test/browser/common.js
	test/browser/css/relative-urls/urls.css
	test/browser/css/urls.css
	test/browser/template.htm
	test/css/compression/compression.css
	test/css/static-urls/urls.css
	test/css/urls.css
	test/less-test.js
2013-09-04 23:12:34 +01:00
Luke Page
0d9160d82d Fix browser tests after removing .. path elements 2013-09-01 18:21:47 +01:00
Luke Page
2ed6f34afb Use the log method for logging errors and turn the number into an
enumeration.
2013-08-22 19:11:23 +01:00
Jon Schlinkert
15c38b1ac2 fixed some typos, ran jshint and reformatted for clarity 2013-08-21 16:33:30 -04:00
Luke Page
03a7183637 add tests and fix log to console feature 2013-08-21 20:35:32 +01:00
Luke Page
6c5072ebbc implement log to console and fix browser tests 2013-08-21 19:35:28 +01:00
meri
1105f1e02f Raised timeout for error test, it did not made it till the end
occasionally.
2013-08-07 16:18:50 +02:00
meri
e3f573d6b2 Removed files that are not used anymore. 2013-08-07 14:07:52 +02:00
meri
12da566398 Added modify vars tests. 2013-08-07 13:52:10 +02:00
meri
d2c60d2884 Added production tests. 2013-08-07 11:30:16 +02:00
meri
296dac360c Added rootpath-relative tests. 2013-08-07 11:09:48 +02:00
meri
1f4bab6453 Added rootpath tests. 2013-08-07 09:41:59 +02:00
meri
58f35b4cd1 Added relative urls tests. 2013-08-07 09:17:19 +02:00
meri
e41d32184e Converted browser/browser tests into jasmine. 2013-08-06 16:45:59 +02:00
meri
38d72f1030 Removed dead code. 2013-08-05 16:11:36 +02:00
meri
c1e1edc0c3 Changed error message. 2013-08-05 15:59:29 +02:00
meri
1ea0416adb Added wait into error tests. 2013-08-05 15:58:04 +02:00
meri
3765bb2926 Did legacy tests and working on errors. 2013-08-05 11:32:06 +02:00
meri
9eddb1b5af Added template and config for main runner. 2013-08-03 16:20:06 +02:00
Jon Schlinkert
38a8664013 Merge branch 'less.js/1.5.0-wip'
Conflicts:
	.jshintrc
	Makefile
	package.json
2013-08-01 06:51:59 -04:00
Luke Page
037cdb5916 fix tests 2013-07-15 22:03:52 +01:00
Luke Page
98f2fef2df add option to disable javascript. Fixes #688 2013-07-05 06:52:29 +01:00
Luke Page
cfe9ae7798 Add svg-gradient function. Fixes #1383 2013-07-05 06:51:58 +01:00
Byron Wong
c4dc89b74b take out previous inline test attempt. add new test to runner-browser to test inline LESS 2013-07-05 06:51:47 +01:00
Luke Page
b726b0d96c Fix modifyVars to use a per file cache so less is re-evaluated properly. Also add tests and \n in case of comment on the last line 2013-07-05 06:49:09 +01:00
ForbesLindesay
22c5bd77c4 Fix global variable leaks 2013-07-05 06:10:16 +01:00