+
+ // 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 )
+ {
+ wxURL urlProblem(pszProblemUrls[i]);
+ CPPUNIT_ASSERT(urlProblem.GetError() == wxURL_NOERR);
+
+ wxInputStream* is = urlProblem.GetInputStream();
+ CPPUNIT_ASSERT(is != NULL);
+
+ wxFile fOut(_T("test.html"), wxFile::write);
+ wxASSERT(fOut.IsOpened());
+
+ char buf[1001];
+ for( ;; )
+ {
+ is->Read(buf, 1000);
+ size_t n = is->LastRead();
+ if ( n == 0 )
+ break;
+ buf[n] = 0;
+ fOut.Write(buf, n);
+ }
+
+ delete is;
+ }
+#endif