Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixing rhino support after last refactoring
  • Loading branch information
aq1018 committed May 1, 2009
1 parent d8d01c6 commit 0e341fe
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 36 deletions.
2 changes: 1 addition & 1 deletion source/environments/RhinoEnvironment.js
Expand Up @@ -7,7 +7,7 @@ Inspec.RhinoEnvironment = Inspec.Environment.extend({
return readFile(location);
},

log : function(mgs){
log : function(msg){
print(msg);
}
});
14 changes: 0 additions & 14 deletions source/reporters/ConsoleReporter.js
Expand Up @@ -30,19 +30,5 @@ Inspec.ConsoleReporter = Inspec.Reporter.extend({
this.log("Error : " + error);
}
}
},

getExampleGroupDescription : function(exampleGroup){
var parent = exampleGroup.getParent();
var description = exampleGroup.getDescription();
if(parent)
description = this.getExampleGroupDescription(parent) + " " + description;
return description;
},

getDescription : function(example){
var desc = this.getExampleGroupDescription(example.exampleGroup)
+ " " + example.getDescription();
return desc;
}
});
17 changes: 0 additions & 17 deletions source/reporters/HtmlReporter.js
Expand Up @@ -80,22 +80,5 @@ Inspec.HtmlReporter = Inspec.Reporter.extend({
}

this.viewport.appendChild(result);
},

getExampleGroupDescription : function(exampleGroup){
var parent = exampleGroup.getParent();
var behavior = exampleGroup.getBehavior();

var description = behavior ? behavior.getDescription() : "";

if(parent)
description = this.getExampleGroupDescription(parent) + " " + description;
return description;
},

getDescription : function(example){
var desc = this.getExampleGroupDescription(example.exampleGroup)
+ " " + example.getDescription();
return desc;
}
});
5 changes: 1 addition & 4 deletions spec/rhino.js
@@ -1,5 +1,2 @@
load("../dist/inspec.js");

Inspec
.load('example.js', 'matchersSpec.js')
.run();
load("specHelper.js");

0 comments on commit 0e341fe

Please sign in to comment.