Hiding notice when test begins

master
Mike Gerwitz 2012-03-03 14:34:48 -05:00
parent 088dce30bc
commit 1e87ec531e
1 changed files with 13 additions and 1 deletions

View File

@ -33,6 +33,7 @@ $( document ).ready( function()
var testcase = rectest.cases[ options['case'] ].testCase(); var testcase = rectest.cases[ options['case'] ].testCase();
$( this ).parent().hide(); $( this ).parent().hide();
hideNotice();
runner.run( testcase, options, function( history ) runner.run( testcase, options, function( history )
{ {
@ -45,7 +46,18 @@ $( document ).ready( function()
{ {
$( '.notice' ) $( '.notice' )
.text( str ) .text( str )
.addClass( 'active' ); .slideDown( 250, function()
{
$( this ).addClass( 'active' );
} );
}
function hideNotice()
{
$( '.notice' ).slideUp( 250, function()
{
$( this ).removeClass( 'active' );
} );
} }
function listCases( presets, $select ) function listCases( presets, $select )