2012-10-03 18:37:48 +02:00
|
|
|
$(function(){
|
|
|
|
//allow cross iframe access
|
2012-10-08 00:34:29 +02:00
|
|
|
if ((!$.browser.msie) && (!($.browser.mozilla && $.browser.version.indexOf("1.8.") == 0))) {
|
|
|
|
document.domain = document.domain; // for comet
|
|
|
|
}
|
2012-10-02 01:35:43 +02:00
|
|
|
|
2012-10-27 18:05:26 +02:00
|
|
|
var specs = specs_list.slice();
|
|
|
|
|
|
|
|
var $body = $('body')
|
|
|
|
$.each(specs, function(i, spec){
|
|
|
|
$body.append('<script src="specs/' + spec + '"></script>')
|
|
|
|
});
|
|
|
|
|
2012-10-03 18:37:48 +02:00
|
|
|
//initalize the test helper
|
2012-10-08 00:34:29 +02:00
|
|
|
helper.init(function(){
|
|
|
|
//configure and start the test framework
|
|
|
|
//mocha.suite.timeout(5000);
|
|
|
|
mocha.ignoreLeaks();
|
|
|
|
mocha.run();
|
|
|
|
});
|
2012-10-03 18:37:48 +02:00
|
|
|
});
|