コード例 #1
0
void MyFrame::SetTestName( const wxString& name )
{
	Component::setDoubleBufferingGlobally( mCfg.mUseDoubleBuf );

	SetTitle( wxString( FRAME_TITLE ) + " - [" + name + "]" );

	if ( !mCfg.mUseLightWeight )

		SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
	else
		SetBackgroundColour( *wxWHITE );

	mTestName = name;

	ShowSource();
}
コード例 #2
0
ファイル: textoutput.cpp プロジェクト: 9thsector/Server
	void
	TextOutput::suite_end(int tests, const string& name, const Time& time)
	{
		if (tests > 0)
		{
			_stream	<< name << ": " << tests << "/" << tests << ", "
					<< correct(tests, _suite_errors) << "% correct"
					<< " in " << time << " seconds" << endl;

			if (_mode == Verbose && _suite_errors)
				for_each(_suite_error_list.begin(), _suite_error_list.end(),
						 ShowSource(_stream));

			_total_errors += _suite_errors;
		}
	}