all tests run both in browser and CLI now

This commit is contained in:
Bass Jobsen
2015-03-11 10:24:37 +01:00
parent 0ed1772e4d
commit 1376b77582
16 changed files with 75 additions and 78 deletions

View File

@@ -0,0 +1,19 @@
(function(exports) {
var preProcessor = function() {};
preProcessor.prototype = {
process : function (src, extra) {
var injected = '@color: red;\n';
var ignored = extra.imports.contentsIgnoredChars;
var fileInfo = extra.fileInfo;
ignored[fileInfo.filename] = ignored[fileInfo.filename] || 0;
ignored[fileInfo.filename] += injected.length;
return injected + src;
}
};
exports.install = function(less, pluginManager) {
pluginManager.addPreProcessor( new preProcessor() );
};
})(typeof exports === 'undefined' ? this['preProcessorPlugin'] = {} : exports);