Skip to content

Commit

Permalink
Merge branch 'master' of github.com:jupiterjs/funcunit
Browse files Browse the repository at this point in the history
  • Loading branch information
moschel committed Jul 25, 2012
2 parents 6ee9397 + 571c0fd commit a64aeaf
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion browser/events.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function(){

if(steal.options.instrument){
if(steal.instrument){
QUnit.done(function(){
// send to console
if(steal.options.browser){
Expand Down
2 changes: 1 addition & 1 deletion browser/resources/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
//

steal('funcunit/browser/resources/jquery.js',function($){
steal('jquery', function($) {
/**
* @page jQuery.toJSON jQuery.toJSON
* @parent jquerymx.lang
Expand Down
8 changes: 6 additions & 2 deletions coverage/coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,13 @@ steal('./coverage.css').then(function(){

var buildIgnoresForm = function(){
var ignoresHTML = "";
for(var i=0;i<steal.instrument.ignores.length; i++){
ignoresHTML += "<label class='ignore'><input id='newignore' type='checkbox' checked='checked' value='"+steal.instrument.ignores[i]+"' /> " +steal.instrument.ignores[i]+"</label>"

if(steal.instrument.ignores){
for(var i=0;i<steal.instrument.ignores.length; i++){
ignoresHTML += "<label class='ignore'><input id='newignore' type='checkbox' checked='checked' value='"+steal.instrument.ignores[i]+"' /> " +steal.instrument.ignores[i]+"</label>"
}
}

$("ignores").innerHTML = "<input id='newignore' type='text' />" + ignoresHTML;
}

Expand Down
2 changes: 2 additions & 0 deletions open/selenium
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@
FuncUnit.browser.open(opts.page)
})

java.lang.System.exit(0);

})()
7 changes: 4 additions & 3 deletions qunit/qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1630,10 +1630,11 @@ QUnit.diff = (function() {
if(QUnit.urlParams["coverage"]){
steal("steal/instrument", function(){
// default ignores
var ignores = ["jquery","funcunit","steal","documentjs","*/test","*_test.js","mxui","*funcunit.js"]
if(typeof FuncUnit !== "undefined"){
ignores = FuncUnit.coverageIgnore ;
var ignores = ["jquery","funcunit","steal","documentjs","*/test","*_test.js","*funcunit.js"]
if(typeof FuncUnit !== "undefined" && FuncUnit.coverageIgnore){
ignores = FuncUnit.coverageIgnore;
}

// overwrite with our own ignores
steal.instrument.ignores = ignores;
steal("funcunit/coverage", function(){
Expand Down

0 comments on commit a64aeaf

Please sign in to comment.