mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
add support for data:,xxx style URL
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35568 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
30934c87eb
commit
ae328505c2
3 changed files with 111 additions and 84 deletions
|
@ -296,6 +296,12 @@ GSPathHandling("right");
|
|||
PASS([url resourceDataUsingCache: NO] != nil,
|
||||
"can load file URL with anchor");
|
||||
|
||||
url = [NSURL URLWithString: @"data:,a23"];
|
||||
PASS_EQUAL([url scheme], @"data", "can get scheme of data URL");
|
||||
PASS_EQUAL([url path], nil, "path of data URL is nil");
|
||||
PASS_EQUAL([url host], nil, "host of data URL is nil");
|
||||
PASS_EQUAL([url resourceSpecifier], @",a23", "resourceSpecifier of data URL");
|
||||
PASS_EQUAL([url absoluteString], @"data:,a23", "can get string of data URL");
|
||||
|
||||
[arp release]; arp = nil;
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue