X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b9afe407e792292ccb266bb692a20e13c502263..53aa7709e08bb3cdaa8ec5c4977f32e817aff7d6:/tests/uris/uris.cpp diff --git a/tests/uris/uris.cpp b/tests/uris/uris.cpp index 8068f4ef53..193beca20a 100644 --- a/tests/uris/uris.cpp +++ b/tests/uris/uris.cpp @@ -11,7 +11,7 @@ // headers // ---------------------------------------------------------------------------- -#include "wx/wxprec.h" +#include "testprec.h" #ifdef __BORLANDC__ #pragma hdrstop @@ -24,10 +24,8 @@ #include "wx/uri.h" #include "wx/url.h" -#include "wx/cppunit.h" - // Test wxURL & wxURI compat? -#define TEST_URL ( 1 && wxUSE_URL ) +#define TEST_URL ( 0 && wxUSE_URL ) // ---------------------------------------------------------------------------- // test class @@ -309,6 +307,13 @@ void URITestCase::URLCompat() #if WXWIN_COMPATIBILITY_2_4 CPPUNIT_ASSERT( wxURL::ConvertFromURI(wxT("%20%41%20")) == wxT(" A ") ); #endif + CPPUNIT_ASSERT( wxURI::Unescape(wxT("%20%41%20")) == wxT(" A ") ); + + wxURI test(wxT("file:\"myf\"ile.txt")); + + CPPUNIT_ASSERT( test.BuildURI() == wxT("file:%22myf%22ile.txt") ); + CPPUNIT_ASSERT( test.GetScheme() == wxT("file") ); + CPPUNIT_ASSERT( test.GetPath() == wxT("%22myf%22ile.txt") ); } #endif