mirror of
https://github.com/less/less.js.git
synced 2026-02-13 16:35:04 -05:00
fix tests
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
(function (tree) {
|
||||
|
||||
tree.debugInfo = function(env, ctx) {
|
||||
tree.debugInfo = function(env, ctx, lineSeperator) {
|
||||
var result="";
|
||||
if (env.dumpLineNumbers && !env.compress) {
|
||||
switch(env.dumpLineNumbers) {
|
||||
@@ -11,7 +11,7 @@ tree.debugInfo = function(env, ctx) {
|
||||
result = tree.debugInfo.asMediaQuery(ctx);
|
||||
break;
|
||||
case 'all':
|
||||
result = tree.debugInfo.asComment(ctx)+tree.debugInfo.asMediaQuery(ctx);
|
||||
result = tree.debugInfo.asComment(ctx) + (lineSeperator || "") + tree.debugInfo.asMediaQuery(ctx);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ tree.Import.prototype = {
|
||||
var features = this.features ? ' ' + this.features.toCSS(env) : '';
|
||||
|
||||
if (this.css) {
|
||||
return "@import " + this.path.toCSS() + features + ';\n';
|
||||
return "@import " + this.path.toCSS() + features + ';';
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -246,7 +246,7 @@ tree.Ruleset.prototype = {
|
||||
}
|
||||
} else {
|
||||
if (rules.length > 0) {
|
||||
debugInfo = tree.debugInfo(env, this);
|
||||
debugInfo = tree.debugInfo(env, this, tabSetStr);
|
||||
selector = this.paths
|
||||
.map(function (p) {
|
||||
return p.map(function (s) {
|
||||
|
||||
Reference in New Issue
Block a user