Update the URL of the web site images used in the test.
The old images don't exist any more after web site redesign. Also, the new favicon can't be loaded from an unseekable stream because it contains multiple icons, so point to the old favicon instead. Closes #16049. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -70,7 +70,7 @@ void URLTestCase::GetInputStream()
|
||||
return;
|
||||
}
|
||||
|
||||
wxURL url("http://wxwidgets.org/logo9.jpg");
|
||||
wxURL url("http://www.wxwidgets.org/assets/img/header-logo.png");
|
||||
CPPUNIT_ASSERT_EQUAL(wxURL_NOERR, url.GetError());
|
||||
|
||||
wxInputStream *in_stream = url.GetInputStream();
|
||||
@@ -79,8 +79,7 @@ void URLTestCase::GetInputStream()
|
||||
wxMemoryOutputStream ostream;
|
||||
CPPUNIT_ASSERT(in_stream->Read(ostream).GetLastError() == wxSTREAM_EOF);
|
||||
|
||||
// wx logo image currently is 13219 bytes
|
||||
CPPUNIT_ASSERT(ostream.GetSize() == 13219);
|
||||
CPPUNIT_ASSERT_EQUAL(13677, ostream.GetSize());
|
||||
|
||||
// we have to delete the object created by GetInputStream()
|
||||
delete in_stream;
|
||||
|
Reference in New Issue
Block a user