Here's a start delay sample with count down:
// dummy test to give user time to select an individual test!
var timer, delay = 3; // secs
test("test-start-delay", function(){
stop();
$('#tests').before('<span id="delay"> Running all
modules in:
'+delay+' secs </span>');
timer = setInterval(function(){
if (--delay <= 0) {
$('#delay').remove();
clearInterval(timer);
start();
}
else {
$('#delay').html($('#delay').html().replace(/\d+/, delay));
}
}, 1000);
return false; // don't report results!
});
You'll need to provide user with a list of modules they can click to
run individual modules using the href="?<module_name>" scheme.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---