Sha256: e7e71eb82a587ca9812c2d79b2adf132d3c8d29b3703ce681f3d418e9a684c49

Contents?: true

Size: 443 Bytes

Versions: 8

Compression:

Stored size: 443 Bytes

Contents

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

initRhinoTest();

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
ilog-0.4.1 node_modules/less/test/rhino/test-header.js
ilog-0.4.0 node_modules/less/test/rhino/test-header.js
ilog-0.3.3 node_modules/less/test/rhino/test-header.js
less-execjs-2.6.0.4 lib/less/js/less/test/rhino/test-header.js
less-execjs-2.6.0.3 lib/less/js/less/test/rhino/test-header.js
less-2.6.0 lib/less/js/test/rhino/test-header.js
less-2.5.1 lib/less/js/test/rhino/test-header.js
less-2.5.0 lib/less/js/test/rhino/test-header.js