99 Commits

Author SHA1 Message Date
Marko Pukari
c731fe0dc1 Fail when image-size functions are used in browser-less. 2015-11-27 13:20:07 +02:00
seven-phases-max
1950248a87 fix formatting to meet jscs settings 2015-04-01 21:26:14 +04:00
Bass Jobsen
1376b77582 all tests run both in browser and CLI now 2015-03-11 10:24:37 +01:00
Bass Jobsen
410a86a594 run postprocess plugin test CLI too 2015-03-04 09:11:17 +01:00
Bass Jobsen
296014a632 add more plugin tests 2015-03-03 22:52:54 +01:00
Bass Jobsen
553e75f9dc add browser postProcessor Plugin test 2015-03-01 22:06:31 +01:00
Bass Jobsen
121bdd8365 allow a list of colors as argument for the svg-gradient function 2015-02-11 20:35:28 +01:00
Luke Page
2114a3fe7a fragment urls referencing just a fragment are assumed absolute - referencing the current page. Fixes #2320 2015-02-02 20:08:48 +00:00
Luke Page
604c911441 style cop 2 - indentation 2015-01-30 20:41:25 +00:00
Luke Page
d206167c84 enforce spaces between operators for consistency 2015-01-27 22:24:12 +00:00
Luke Page
31c3d04980 jscs style checking. Fixed whitespace issues. 2015-01-26 23:34:35 +00:00
Luke Page
8ea1e880f2 improve error messages when failing to import for #2375 2015-01-11 16:30:29 +00:00
Luke Page
11fd6b17dc Default svgs to not be base64 encoded. encodeUri the svg-gradient function (and never base64 encode it). Fixes #2250 2015-01-03 14:59:51 +00:00
Matthew Smith
19b606b439 Improve url check to be more robust, fix tests
I figured out that the test would still fail if I call the import in the
urls.less file. That way I don't need to figure out all the setup
required to test this bug.

- #2360
2014-12-31 13:09:02 -07:00
Luke Page
06aa304038 get tests passing in chrome in sauce 2014-11-23 08:08:45 +00:00
Luke Page
b2aa23e88e Fix IE8 error test 2014-11-16 16:01:32 +00:00
Luke Page
75426cb1d7 support pre ie10 and fix sauce asking for js status before script loaded 2014-11-16 15:00:04 +00:00
Luke Page
de06e26c03 Run less.js after page load to see if it fixes IE page load issue 2014-11-16 11:30:42 +00:00
Luke Page
9017cbe2ad improve legacy units to be more consistent (particularly for multiplicaton). Fixes #2276 2014-11-09 14:01:01 +00:00
Luke Page
f698d77180 increase async timeout because appveyor can take 70 seconds to start up 2014-11-09 09:42:46 +00:00
Luke Page
ced43a71ad Increase jasmine timeout for (very) slow computers 2014-11-08 22:48:09 +00:00
Luke Page
e0f9f21132 increase timeout and fix tests not supported in IE8-10 2014-11-02 16:50:07 +00:00
Luke Page
4b1a200686 IE8/IE9 support 2014-11-02 13:50:04 +00:00
Luke Page
77dbc98321 tidy up and fix ff/ie11 2014-11-02 12:27:40 +00:00
Luke Page
7c4745bb7d test support for IE11 2014-11-02 12:19:05 +00:00
Luke Page
d37b55029f firefox support 2014-11-02 10:45:55 +00:00
Luke Page
1ab7bbce41 Merge branch 'master' into sauce
Conflicts:
	package.json
2014-11-01 18:51:21 +00:00
Luke Page
062afacfe0 Fix browserify to be the one to expose less to window 2014-11-01 12:04:54 +00:00
Luke Page
f24db033de ie support in the tests 2014-10-22 12:46:22 +01:00
Luke Page
b6043a55d2 Merge branch 'master' into sauce 2014-10-21 13:22:19 +01:00
Luke Page
ba3d24a352 Support urls begining // which are unquoted. Fixes #2238 2014-10-21 13:01:01 +01:00
Luke Page
329e87563a improver browsertest-server and use jasmine js-reporter (for integration with sauce) 2014-10-20 09:29:49 +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