mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Merge from base release
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34755 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c66b0a6adf
commit
e5691678b4
3 changed files with 44 additions and 10 deletions
|
@ -121,6 +121,16 @@ int main()
|
|||
"Simple relative URL fullPath works");
|
||||
#endif
|
||||
|
||||
url = [NSURL URLWithString: @"http://1.2.3.4/a?b;foo"];
|
||||
PASS_EQUAL([url absoluteString], @"http://1.2.3.4/a?b;foo",
|
||||
"query and params not escaped");
|
||||
|
||||
url = [[[NSURL alloc] initWithScheme: @"http"
|
||||
host: @"1.2.3.4"
|
||||
path: @"/a?b;foo"] autorelease];
|
||||
PASS_EQUAL([url absoluteString], @"http://1.2.3.4/a?b;foo",
|
||||
"query and params not escaped");
|
||||
|
||||
url = [NSURL URLWithString: @"http://here.and.there/testing/one.html"];
|
||||
rel = [NSURL URLWithString: @"/aaa/bbb/ccc/" relativeToURL: url];
|
||||
PASS([[rel absoluteString]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue