"test" for testing a [fixed] proxy crash (from last commit)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7be8c821b7
commit
e605541c36
@ -25,7 +25,7 @@
|
|||||||
#include "wx/url.h"
|
#include "wx/url.h"
|
||||||
|
|
||||||
// Test wxURL & wxURI compat?
|
// Test wxURL & wxURI compat?
|
||||||
#define TEST_URL ( 0 && wxUSE_URL )
|
#define TEST_URL ( 1 && wxUSE_URL )
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// test class
|
// test class
|
||||||
@ -50,6 +50,7 @@ private:
|
|||||||
CPPUNIT_TEST( Comparison );
|
CPPUNIT_TEST( Comparison );
|
||||||
#if TEST_URL
|
#if TEST_URL
|
||||||
CPPUNIT_TEST( URLCompat );
|
CPPUNIT_TEST( URLCompat );
|
||||||
|
CPPUNIT_TEST( URLProxy );
|
||||||
#endif
|
#endif
|
||||||
CPPUNIT_TEST_SUITE_END();
|
CPPUNIT_TEST_SUITE_END();
|
||||||
|
|
||||||
@ -66,6 +67,7 @@ private:
|
|||||||
|
|
||||||
#if TEST_URL
|
#if TEST_URL
|
||||||
void URLCompat();
|
void URLCompat();
|
||||||
|
void URLProxy();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DECLARE_NO_COPY_CLASS(URITestCase)
|
DECLARE_NO_COPY_CLASS(URITestCase)
|
||||||
@ -316,4 +318,10 @@ void URITestCase::URLCompat()
|
|||||||
CPPUNIT_ASSERT( test.GetPath() == wxT("%22myf%22ile.txt") );
|
CPPUNIT_ASSERT( test.GetPath() == wxT("%22myf%22ile.txt") );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void URITestCase::URLProxy()
|
||||||
|
{
|
||||||
|
wxURL url("http://www.asite.com/index.html");
|
||||||
|
url.SetProxy("pserv:3122");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user