]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/uris/uris.cpp
Rebake after adding libs html and xml to samples using lib adv
[wxWidgets.git] / tests / uris / uris.cpp
index c4aa89dc5cbc70366ec09bdefa1cc0fa5a620b52..ec59baf1edb6d5a1f2ddec14f4e2aa9567155a77 100644 (file)
@@ -345,6 +345,9 @@ void URITestCase::URLCompat()
     CPPUNIT_ASSERT( test.GetScheme() == wxT("file") );
     CPPUNIT_ASSERT( test.GetPath() == wxT("%22myf%22ile.txt") );
 
+    // these could be put under a named registry since they take some
+    // time to complete
+#if 0
     // Test problem urls (reported not to work some time ago by a user...)
     for ( size_t i = 0; i < WXSIZEOF(pszProblemUrls); ++i )
     {
@@ -370,6 +373,7 @@ void URITestCase::URLCompat()
 
         delete is;
     }
+#endif
 }
 
 #if wxUSE_PROTOCOL_HTTP
@@ -377,8 +381,12 @@ void URITestCase::URLProxy()
 {
     wxURL url(wxT("http://www.asite.com/index.html"));
     url.SetProxy(wxT("pserv:3122"));
+
+    wxURL::SetDefaultProxy(wxT("fol.singnet.com.sg:8080"));
+    wxURL url2(wxT("http://server-name/path/to/file?query_data=value"));
+    wxInputStream *data = url2.GetInputStream();
+    CPPUNIT_ASSERT(data != NULL);
 }
 #endif // wxUSE_PROTOCOL_HTTP
 
 #endif // TEST_URL
-