etherpad-lite/tests/frontend/runner.js
2012-10-27 17:05:26 +01:00

21 lines
No EOL
540 B
JavaScript

$(function(){
//allow cross iframe access
if ((!$.browser.msie) && (!($.browser.mozilla && $.browser.version.indexOf("1.8.") == 0))) {
document.domain = document.domain; // for comet
}
var specs = specs_list.slice();
var $body = $('body')
$.each(specs, function(i, spec){
$body.append('<script src="specs/' + spec + '"></script>')
});
//initalize the test helper
helper.init(function(){
//configure and start the test framework
//mocha.suite.timeout(5000);
mocha.ignoreLeaks();
mocha.run();
});
});