Vadim Zeitlin
314630945a
Fix wxURI::Unescape() to work with Unicode strings
...
Such strings are not really URIs as they should have been encoded if they were
but we can obtain them from e.g. wxFileSystem::FindFirst(), so handle them
correctly here as it's simpler than checking all the places where Unescape()
is called.
Add a unit test checking that decoding an URI containing both Unicode and
percent-encoded Unicode characters works correctly.
2016-02-13 04:01:27 +01:00
Dimitri Schoolwerth
8f8d58d193
Use wx-prefixed macros throughout the repository.
...
Change {DECLARE,IMPLEMENT}_*CLASS and {DECLARE,BEGIN,END}_EVENT_TABLE
occurrences to use the wx-prefixed version of the macros.
2015-04-23 22:00:35 +04:00
Vadim Zeitlin
3f66f6a5b3
Remove all lines containing cvs/svn "$Id$" keyword.
...
This keyword is not expanded by Git which means it's not replaced with the
correct revision value in the releases made using git-based scripts and it's
confusing to have lines with unexpanded "$Id$" in the released files. As
expanding them with Git is not that simple (it could be done with git archive
and export-subst attribute) and there are not many benefits in having them in
the first place, just remove all these lines.
If nothing else, this will make an eventual transition to Git simpler.
Closes #14487 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-26 16:02:46 +00:00
Dimitri Schoolwerth
e3778b4d9c
No code changes, fixed some typos.
...
Changed several occurrences of "it's" where "its" is meant, as well as a few other minor typos.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-30 10:57:04 +00:00
Vadim Zeitlin
87f528f15b
Disable unit tests which can't work in ANSI build.
...
Disable unit tests involving operations (such as conversions between UTF and
anything but plain ASCII) not available in ANSI build.
This fixes the test suite for non-Unicode build under Unix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-10 13:53:49 +00:00
Vadim Zeitlin
9a83f86094
Globally replace _T() with wxT().
...
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660 ).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Francesco Montorsi
1f51673bb8
add wxURL::GetInputStream test unit; add a global IsNetworkAvailable() utility to the test units
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-01 11:30:50 +00:00
Vadim Zeitlin
62e3e6c2bc
fix wxURI::GetUser() for URIs without password; added unit test case for it ( closes #10412 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-21 17:02:11 +00:00
Vadim Zeitlin
c4dbb95303
fix parsing of IP literals in URIs, added test for it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 15:27:10 +00:00
Vadim Zeitlin
c3a65218fb
introduced more convenient and readable URI_ASSERT_XXX_EQUAL() macros
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 14:08:01 +00:00
Vadim Zeitlin
2186321ff5
big wxURI cleanup; it now handles Unicode characters correctly ( #3874 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-19 23:14:51 +00:00
Vadim Zeitlin
5c3d5ef246
simplify the test, don't reuse the same macro for different things
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-18 23:08:24 +00:00
Vadim Zeitlin
9fc7a1d276
disable test using network by default as it's not available on some of buildbot machines and so makes the test fail
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-30 23:38:56 +00:00
Vadim Zeitlin
0475aefcb4
removed WXWIN_COMPATIBILITY_24
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-08 01:33:01 +00:00
Vadim Zeitlin
402ccadcdd
disable bogus test
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-10 00:17:46 +00:00
Vadim Zeitlin
97ad053bff
more standard (although less RFC-conformant) treatment of file: URIs (patch 1415189)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-09 03:09:36 +00:00
Michael Wetherell
6c1a7bc483
Temporarily disable test that takes a long time to run, needs moving to a named registry
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-15 19:04:29 +00:00
Włodzimierz Skiba
fd725bce37
Patch #1222244 : Fixes for bug #1212853 with unit test.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-17 11:29:55 +00:00
Vadim Zeitlin
24fec90857
added tests of more URLs in URITestCase::URLCompat()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-07 12:19:28 +00:00
Vadim Zeitlin
24ca04e7aa
fix for fixing of escape sequences (patch 1213416)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-07 12:17:33 +00:00
Mattia Barbon
26531700c7
Correct compilation conditions for wxURL::SetProxy.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-19 23:09:31 +00:00
Włodzimierz Skiba
6ca3a32256
Unicode fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-14 19:52:52 +00:00
Ryan Norton
e605541c36
"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
2005-03-14 03:33:50 +00:00
Ryan Norton
8899b155a1
[ 1068188 ] Precompiled header for the test program [Modified a bit]
...
Regen bakefiles for unit tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-22 05:00:19 +00:00
Ryan Norton
990e581091
clean up dust from uri tests
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-08 00:23:52 +00:00
Ryan Norton
113e181a8a
update msvc projs manually for changed tests and uri tests and rebake others
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-08 00:17:00 +00:00
Włodzimierz Skiba
2b9afe407e
URL conditional and consistent intendation.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-04 21:56:29 +00:00
Ryan Norton
86470d432f
final wxURI API changes. Changed Get to BuildURI to better reflect what its doing. Added wxURI::Unescape to unescape characters in a url or uri. Added wxURI::BuildUnescapedURI. Changed the wxURL convertXXXuri methods to use uri methods instead, and depreciated these methods.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 09:57:43 +00:00
Ryan Norton
b60b2ec8ac
Inherit wxURL from wxURI, providing assignment, copy construction, comparison, and less duplication of code. Change wxURI a bit to meet some of Vadim's reccommendations - move accessors into header, and finish some of his other reccom. Change assignment to use const wxString& instead of const wxChar*. Change wxURI docs to reflect that it inherits from wxObject. Made preliminary docs for the wxURL transition. Add some unit tests for the transition.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 06:49:46 +00:00
Ryan Norton
dd65d8c830
wxURI. Move Convert/to/fromURI into uri.cpp so that it is compiled in base. Regenerate Bakefiles.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 22:47:26 +00:00