Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0da7c8f4
Commit
0da7c8f4
authored
Jan 09, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Jan 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Additional UrlEscapeA tests.
parent
c565a838
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
url.c
dlls/shlwapi/tests/url.c
+26
-1
No files found.
dlls/shlwapi/tests/url.c
View file @
0da7c8f4
...
...
@@ -454,12 +454,37 @@ static void test_url_canonicalize(const char *szUrl, DWORD dwFlags, HRESULT dwEx
static
void
test_UrlEscape
(
void
)
{
DWORD
size
;
DWORD
size
=
0
;
HRESULT
ret
;
unsigned
int
i
;
char
empty_string
[]
=
""
;
ret
=
UrlEscapeA
(
"/woningplan/woonkamer basis.swf"
,
NULL
,
&
size
,
URL_ESCAPE_SPACES_ONLY
);
ok
(
ret
==
E_INVALIDARG
,
"got %x, expected %x
\n
"
,
ret
,
E_INVALIDARG
);
todo_wine
{
ok
(
size
==
0
,
"got %d, expected %d
\n
"
,
size
,
0
);
}
size
=
0
;
ret
=
UrlEscapeA
(
"/woningplan/woonkamer basis.swf"
,
empty_string
,
&
size
,
URL_ESCAPE_SPACES_ONLY
);
ok
(
ret
==
E_INVALIDARG
,
"got %x, expected %x
\n
"
,
ret
,
E_INVALIDARG
);
todo_wine
{
ok
(
size
==
0
,
"got %d, expected %d
\n
"
,
size
,
0
);
}
size
=
1
;
ret
=
UrlEscapeA
(
"/woningplan/woonkamer basis.swf"
,
NULL
,
&
size
,
URL_ESCAPE_SPACES_ONLY
);
ok
(
ret
==
E_INVALIDARG
,
"got %x, expected %x
\n
"
,
ret
,
E_INVALIDARG
);
todo_wine
{
ok
(
size
==
1
,
"got %d, expected %d
\n
"
,
size
,
1
);
}
size
=
1
;
ret
=
UrlEscapeA
(
"/woningplan/woonkamer basis.swf"
,
empty_string
,
&
size
,
URL_ESCAPE_SPACES_ONLY
);
todo_wine
{
ok
(
ret
==
E_POINTER
,
"got %x, expected %x
\n
"
,
ret
,
E_POINTER
);
}
ok
(
size
==
34
,
"got %d, expected %d
\n
"
,
size
,
34
);
for
(
i
=
0
;
i
<
sizeof
(
TEST_ESCAPE
)
/
sizeof
(
TEST_ESCAPE
[
0
]);
i
++
)
{
test_url_escape
(
TEST_ESCAPE
[
i
].
url
,
TEST_ESCAPE
[
i
].
flags
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment