Skip to content

Commit

Permalink
Try to fix build after mega merge, might work
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanseddon committed Oct 16, 2012
1 parent 3114709 commit da04fc8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
8 changes: 4 additions & 4 deletions test/js/dumpdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,13 @@ function processTree(data){
return jQuery.getScript(filename);
});

jQuery.when.apply(jQuery, jqxhrs).done(resultsToDOM);
jQuery.when.apply(jQuery, jqxhrs).done(function(){
QUnit.start();
resultsToDOM();
});

}

function resultsToDOM(){

var modOutput = document.createElement('div'),
ref = document.getElementById('qunit-testresult') || document.getElementById('qunit-tests');

Expand All @@ -77,7 +78,6 @@ function resultsToDOM(){

// Modernizr object as text
document.getElementsByTagName('textarea')[0].innerHTML = JSON.stringify(Modernizr);

}

/* uno */ resultsToDOM();
Expand Down
22 changes: 4 additions & 18 deletions test/js/unit.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
QUnit.begin = function() {
console.log("Starting test suite");
console.log("================================================\n");
};

QUnit.moduleDone = function(opts) {
if(opts.failed === 0) {
console.log("\u2714 All tests passed in '"+opts.name+"' module");
} else {
console.log("\u2716 "+ opts.failed +" tests failed in '"+opts.name+"' module");
}
};

QUnit.done = function(opts) {
console.log("\n================================================");
console.log("Tests completed in "+opts.runtime+" milliseconds");
console.log(opts.passed + " tests of "+opts.total+" passed, "+opts.failed+" failed.");
};
// PhantomJS timesout so leave autostart on
if(navigator.userAgent.indexOf("PhantomJS") === -1) {
QUnit.config.autostart = false;
}

module('Basics', {
setup:function() {
Expand Down

0 comments on commit da04fc8

Please sign in to comment.