mirror of
https://github.com/less/less.js.git
synced 2026-02-10 15:05:09 -05:00
added gradle based test suite, reviewed rhino integration
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
SyntaxError: JavaScript evaluation error: 'TypeError: Cannot call method 'toJS' of undefined' in {path}javascript-error.less on line 2, column 27:
|
||||
SyntaxError: JavaScript evaluation error: 'TypeError: Cannot call method "toJS" of undefined' in {path}javascript-error.less on line 2, column 27:
|
||||
1 .scope {
|
||||
2 var: `this.foo.toJS()`;
|
||||
3 }
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
function initRhinoTest() {
|
||||
process = { title: 'dummy' };
|
||||
|
||||
less.tree.functions.add = function (a, b) {
|
||||
return new(less.tree.Dimension)(a.value + b.value);
|
||||
};
|
||||
less.tree.functions.increment = function (a) {
|
||||
return new(less.tree.Dimension)(a.value + 1);
|
||||
};
|
||||
less.tree.functions._color = function (str) {
|
||||
if (str.value === "evil red") { return new(less.tree.Color)("600"); }
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user