fix tests

This commit is contained in:
Luke Page
2013-07-15 22:03:52 +01:00
parent a554b8e088
commit 037cdb5916
12 changed files with 15 additions and 17 deletions

View File

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

View File

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

View File

@@ -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) {