added gradle based test suite, reviewed rhino integration

This commit is contained in:
Oliver Becker
2013-10-27 12:47:59 +01:00
parent 2b73725b44
commit 716101256e
9 changed files with 548 additions and 57 deletions

View File

@@ -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 }

View File

@@ -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"); }
};
}