git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58013
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void GarbageTestCase::DoLoadFile(const wxString& fullname)
{
void GarbageTestCase::DoLoadFile(const wxString& fullname)
{
// test wxImage
wxImage img;
CPPUNIT_ASSERT( img.LoadFile(fullname) == false );
// test with the default wxBITMAP_TYPE_ANY
// test wxImage
wxImage img;
CPPUNIT_ASSERT( img.LoadFile(fullname) == false );
// test with the default wxBITMAP_TYPE_ANY
- for (int type = wxBITMAP_TYPE_BMP; type < wxBITMAP_TYPE_ANY; type++)
+ for (type = wxBITMAP_TYPE_BMP; type < wxBITMAP_TYPE_ANY; type++)
CPPUNIT_ASSERT( img.LoadFile(fullname, (wxBitmapType)type) == false );
// test with all other possible wxBITMAP_TYPE_* flags
CPPUNIT_ASSERT( img.LoadFile(fullname, (wxBitmapType)type) == false );
// test with all other possible wxBITMAP_TYPE_* flags
CPPUNIT_ASSERT( bmp.LoadFile(fullname) == false );
// test with the default wxBITMAP_TYPE_ANY
CPPUNIT_ASSERT( bmp.LoadFile(fullname) == false );
// test with the default wxBITMAP_TYPE_ANY
- for (int type = wxBITMAP_TYPE_BMP; type < wxBITMAP_TYPE_ANY; type++)
+ for (type = wxBITMAP_TYPE_BMP; type < wxBITMAP_TYPE_ANY; type++)
CPPUNIT_ASSERT( bmp.LoadFile(fullname, (wxBitmapType)type) == false );
// test with all other possible wxBITMAP_TYPE_* flags
CPPUNIT_ASSERT( bmp.LoadFile(fullname, (wxBitmapType)type) == false );
// test with all other possible wxBITMAP_TYPE_* flags
CPPUNIT_ASSERT( icon.LoadFile(fullname) == false );
// test with the default wxICON_DEFAULT_TYPE
CPPUNIT_ASSERT( icon.LoadFile(fullname) == false );
// test with the default wxICON_DEFAULT_TYPE
- for (int type = wxBITMAP_TYPE_BMP; type < wxBITMAP_TYPE_ANY; type++)
+ for (type = wxBITMAP_TYPE_BMP; type < wxBITMAP_TYPE_ANY; type++)
CPPUNIT_ASSERT( icon.LoadFile(fullname, (wxBitmapType)type) == false );
// test with all other possible wxBITMAP_TYPE_* flags
CPPUNIT_ASSERT( icon.LoadFile(fullname, (wxBitmapType)type) == false );
// test with all other possible wxBITMAP_TYPE_* flags
CPPUNIT_ASSERT( anim.LoadFile(fullname) == false );
// test with the default wxANIMATION_TYPE_ANY
CPPUNIT_ASSERT( anim.LoadFile(fullname) == false );
// test with the default wxANIMATION_TYPE_ANY
- for (int type = wxANIMATION_TYPE_INVALID+1; type < wxANIMATION_TYPE_ANY; type++)
+ for (type = wxANIMATION_TYPE_INVALID+1; type < wxANIMATION_TYPE_ANY; type++)
CPPUNIT_ASSERT( anim.LoadFile(fullname, (wxAnimationType)type) == false );
// test with all other possible wxANIMATION_TYPE_* flags
CPPUNIT_ASSERT( anim.LoadFile(fullname, (wxAnimationType)type) == false );
// test with all other possible wxANIMATION_TYPE_* flags
void GarbageTestCase::DoLoadStream(wxInputStream& stream)
{
void GarbageTestCase::DoLoadStream(wxInputStream& stream)
{
// NOTE: not all classes tested by DoLoadFile() supports loading
// from an input stream!
// NOTE: not all classes tested by DoLoadFile() supports loading
// from an input stream!
CPPUNIT_ASSERT( img.LoadFile(stream) == false );
// test with the default wxBITMAP_TYPE_ANY
CPPUNIT_ASSERT( img.LoadFile(stream) == false );
// test with the default wxBITMAP_TYPE_ANY
- for (int type = wxBITMAP_TYPE_INVALID+1; type < wxBITMAP_TYPE_ANY; type++)
+ for (type = wxBITMAP_TYPE_INVALID+1; type < wxBITMAP_TYPE_ANY; type++)
CPPUNIT_ASSERT( img.LoadFile(stream, (wxBitmapType)type) == false );
// test with all other possible wxBITMAP_TYPE_* flags
CPPUNIT_ASSERT( img.LoadFile(stream, (wxBitmapType)type) == false );
// test with all other possible wxBITMAP_TYPE_* flags
CPPUNIT_ASSERT( anim.Load(stream) == false );
// test with the default wxANIMATION_TYPE_ANY
CPPUNIT_ASSERT( anim.Load(stream) == false );
// test with the default wxANIMATION_TYPE_ANY
- for (int type = wxANIMATION_TYPE_INVALID+1; type < wxANIMATION_TYPE_ANY; type++)
+ for (type = wxANIMATION_TYPE_INVALID+1; type < wxANIMATION_TYPE_ANY; type++)
CPPUNIT_ASSERT( anim.Load(stream, (wxAnimationType)type) == false );
// test with all other possible wxANIMATION_TYPE_* flags
/*
CPPUNIT_ASSERT( anim.Load(stream, (wxAnimationType)type) == false );
// test with all other possible wxANIMATION_TYPE_* flags
/*