Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
62dca77b
Commit
62dca77b
authored
Sep 01, 2011
by
André Hentschel
Committed by
Alexandre Julliard
Sep 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Print out the wrong mime.
parent
4f5b2a4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
misc.c
dlls/urlmon/tests/misc.c
+10
-10
No files found.
dlls/urlmon/tests/misc.c
View file @
62dca77b
...
@@ -666,7 +666,7 @@ static void test_FindMimeFromData(void)
...
@@ -666,7 +666,7 @@ static void test_FindMimeFromData(void)
hres
=
pFindMimeFromData
(
NULL
,
mime_tests
[
i
].
url
,
NULL
,
0
,
NULL
,
0
,
&
mime
,
0
);
hres
=
pFindMimeFromData
(
NULL
,
mime_tests
[
i
].
url
,
NULL
,
0
,
NULL
,
0
,
&
mime
,
0
);
if
(
mime_tests
[
i
].
mime
)
{
if
(
mime_tests
[
i
].
mime
)
{
ok
(
hres
==
S_OK
,
"[%d] FindMimeFromData failed: %08x
\n
"
,
i
,
hres
);
ok
(
hres
==
S_OK
,
"[%d] FindMimeFromData failed: %08x
\n
"
,
i
,
hres
);
ok
(
!
lstrcmpW
(
mime
,
mime_tests
[
i
].
mime
),
"[%d] wrong mime
\n
"
,
i
);
ok
(
!
lstrcmpW
(
mime
,
mime_tests
[
i
].
mime
),
"[%d] wrong mime
: %s
\n
"
,
i
,
wine_dbgstr_w
(
mime
)
);
CoTaskMemFree
(
mime
);
CoTaskMemFree
(
mime
);
}
else
{
}
else
{
ok
(
hres
==
E_FAIL
||
hres
==
mime_tests
[
i
].
hres
,
ok
(
hres
==
E_FAIL
||
hres
==
mime_tests
[
i
].
hres
,
...
@@ -678,13 +678,13 @@ static void test_FindMimeFromData(void)
...
@@ -678,13 +678,13 @@ static void test_FindMimeFromData(void)
mime
=
(
LPWSTR
)
0xf0f0f0f0
;
mime
=
(
LPWSTR
)
0xf0f0f0f0
;
hres
=
pFindMimeFromData
(
NULL
,
mime_tests
[
i
].
url
,
NULL
,
0
,
mimeTextPlain
,
0
,
&
mime
,
0
);
hres
=
pFindMimeFromData
(
NULL
,
mime_tests
[
i
].
url
,
NULL
,
0
,
mimeTextPlain
,
0
,
&
mime
,
0
);
ok
(
hres
==
S_OK
,
"[%d] FindMimeFromData failed: %08x
\n
"
,
i
,
hres
);
ok
(
hres
==
S_OK
,
"[%d] FindMimeFromData failed: %08x
\n
"
,
i
,
hres
);
ok
(
!
lstrcmpW
(
mime
,
mimeTextPlain
),
"[%d] wrong mime
\n
"
,
i
);
ok
(
!
lstrcmpW
(
mime
,
mimeTextPlain
),
"[%d] wrong mime
: %s
\n
"
,
i
,
wine_dbgstr_w
(
mime
)
);
CoTaskMemFree
(
mime
);
CoTaskMemFree
(
mime
);
mime
=
(
LPWSTR
)
0xf0f0f0f0
;
mime
=
(
LPWSTR
)
0xf0f0f0f0
;
hres
=
pFindMimeFromData
(
NULL
,
mime_tests
[
i
].
url
,
NULL
,
0
,
mimeAppOctetStream
,
0
,
&
mime
,
0
);
hres
=
pFindMimeFromData
(
NULL
,
mime_tests
[
i
].
url
,
NULL
,
0
,
mimeAppOctetStream
,
0
,
&
mime
,
0
);
ok
(
hres
==
S_OK
,
"[%d] FindMimeFromData failed: %08x
\n
"
,
i
,
hres
);
ok
(
hres
==
S_OK
,
"[%d] FindMimeFromData failed: %08x
\n
"
,
i
,
hres
);
ok
(
!
lstrcmpW
(
mime
,
mimeAppOctetStream
),
"[%d] wrong mime
\n
"
,
i
);
ok
(
!
lstrcmpW
(
mime
,
mimeAppOctetStream
),
"[%d] wrong mime
: %s
\n
"
,
i
,
wine_dbgstr_w
(
mime
)
);
CoTaskMemFree
(
mime
);
CoTaskMemFree
(
mime
);
}
}
...
@@ -700,16 +700,16 @@ static void test_FindMimeFromData(void)
...
@@ -700,16 +700,16 @@ static void test_FindMimeFromData(void)
ok
(
hres
==
S_OK
,
"[%d] FindMimeFromData failed: %08x
\n
"
,
i
,
hres
);
ok
(
hres
==
S_OK
,
"[%d] FindMimeFromData failed: %08x
\n
"
,
i
,
hres
);
if
(
!
lstrcmpW
(
mimeAppOctetStream
,
mime_tests2
[
i
].
mime
)
if
(
!
lstrcmpW
(
mimeAppOctetStream
,
mime_tests2
[
i
].
mime
)
||
!
lstrcmpW
(
mimeTextPlain
,
mime_tests2
[
i
].
mime
))
||
!
lstrcmpW
(
mimeTextPlain
,
mime_tests2
[
i
].
mime
))
ok
(
!
lstrcmpW
(
mime
,
mimeTextHtml
),
"[%d] wrong mime
\n
"
,
i
);
ok
(
!
lstrcmpW
(
mime
,
mimeTextHtml
),
"[%d] wrong mime
: %s
\n
"
,
i
,
wine_dbgstr_w
(
mime
)
);
else
else
ok
(
!
lstrcmpW
(
mime
,
mime_tests2
[
i
].
mime
),
"[%d] wrong mime
\n
"
,
i
);
ok
(
!
lstrcmpW
(
mime
,
mime_tests2
[
i
].
mime
),
"[%d] wrong mime
: %s
\n
"
,
i
,
wine_dbgstr_w
(
mime
)
);
CoTaskMemFree
(
mime
);
CoTaskMemFree
(
mime
);
hres
=
pFindMimeFromData
(
NULL
,
NULL
,
mime_tests2
[
i
].
data
,
mime_tests2
[
i
].
size
,
hres
=
pFindMimeFromData
(
NULL
,
NULL
,
mime_tests2
[
i
].
data
,
mime_tests2
[
i
].
size
,
mimeImagePjpeg
,
0
,
&
mime
,
0
);
mimeImagePjpeg
,
0
,
&
mime
,
0
);
ok
(
hres
==
S_OK
,
"[%d] FindMimeFromData failed: %08x
\n
"
,
i
,
hres
);
ok
(
hres
==
S_OK
,
"[%d] FindMimeFromData failed: %08x
\n
"
,
i
,
hres
);
if
(
!
lstrcmpW
(
mimeAppOctetStream
,
mime_tests2
[
i
].
mime
)
||
i
==
17
)
if
(
!
lstrcmpW
(
mimeAppOctetStream
,
mime_tests2
[
i
].
mime
)
||
i
==
17
)
ok
(
!
lstrcmpW
(
mime
,
mimeImagePjpeg
),
"[%d] wrong mime
\n
"
,
i
);
ok
(
!
lstrcmpW
(
mime
,
mimeImagePjpeg
),
"[%d] wrong mime
: %s
\n
"
,
i
,
wine_dbgstr_w
(
mime
)
);
else
else
ok
(
!
lstrcmpW
(
mime
,
mime_tests2
[
i
].
mime
)
||
ok
(
!
lstrcmpW
(
mime
,
mime_tests2
[
i
].
mime
)
||
(
mime_tests2
[
i
].
mime_alt
&&
!
lstrcmpW
(
mime
,
mime_tests2
[
i
].
mime_alt
)),
(
mime_tests2
[
i
].
mime_alt
&&
!
lstrcmpW
(
mime
,
mime_tests2
[
i
].
mime_alt
)),
...
@@ -720,17 +720,17 @@ static void test_FindMimeFromData(void)
...
@@ -720,17 +720,17 @@ static void test_FindMimeFromData(void)
hres
=
pFindMimeFromData
(
NULL
,
url1
,
data1
,
sizeof
(
data1
),
NULL
,
0
,
&
mime
,
0
);
hres
=
pFindMimeFromData
(
NULL
,
url1
,
data1
,
sizeof
(
data1
),
NULL
,
0
,
&
mime
,
0
);
ok
(
hres
==
S_OK
,
"FindMimeFromData failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"FindMimeFromData failed: %08x
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
mime
,
mimeTextPlain
),
"wrong mime
\n
"
);
ok
(
!
lstrcmpW
(
mime
,
mimeTextPlain
),
"wrong mime
: %s
\n
"
,
wine_dbgstr_w
(
mime
)
);
CoTaskMemFree
(
mime
);
CoTaskMemFree
(
mime
);
hres
=
pFindMimeFromData
(
NULL
,
url1
,
data1
,
sizeof
(
data1
),
mimeAppOctetStream
,
0
,
&
mime
,
0
);
hres
=
pFindMimeFromData
(
NULL
,
url1
,
data1
,
sizeof
(
data1
),
mimeAppOctetStream
,
0
,
&
mime
,
0
);
ok
(
hres
==
S_OK
,
"FindMimeFromData failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"FindMimeFromData failed: %08x
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
mime
,
mimeTextPlain
),
"wrong mime
\n
"
);
ok
(
!
lstrcmpW
(
mime
,
mimeTextPlain
),
"wrong mime
: %s
\n
"
,
wine_dbgstr_w
(
mime
)
);
CoTaskMemFree
(
mime
);
CoTaskMemFree
(
mime
);
hres
=
pFindMimeFromData
(
NULL
,
url4
,
data1
,
sizeof
(
data1
),
mimeAppOctetStream
,
0
,
&
mime
,
0
);
hres
=
pFindMimeFromData
(
NULL
,
url4
,
data1
,
sizeof
(
data1
),
mimeAppOctetStream
,
0
,
&
mime
,
0
);
ok
(
hres
==
S_OK
,
"FindMimeFromData failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"FindMimeFromData failed: %08x
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
mime
,
mimeTextPlain
),
"wrong mime
\n
"
);
ok
(
!
lstrcmpW
(
mime
,
mimeTextPlain
),
"wrong mime
: %s
\n
"
,
wine_dbgstr_w
(
mime
)
);
CoTaskMemFree
(
mime
);
CoTaskMemFree
(
mime
);
hres
=
pFindMimeFromData
(
NULL
,
NULL
,
NULL
,
0
,
NULL
,
0
,
&
mime
,
0
);
hres
=
pFindMimeFromData
(
NULL
,
NULL
,
NULL
,
0
,
NULL
,
0
,
&
mime
,
0
);
...
@@ -747,7 +747,7 @@ static void test_FindMimeFromData(void)
...
@@ -747,7 +747,7 @@ static void test_FindMimeFromData(void)
hres
=
pFindMimeFromData
(
NULL
,
NULL
,
data1
,
0
,
mimeTextPlain
,
0
,
&
mime
,
0
);
hres
=
pFindMimeFromData
(
NULL
,
NULL
,
data1
,
0
,
mimeTextPlain
,
0
,
&
mime
,
0
);
ok
(
hres
==
S_OK
,
"FindMimeFromData failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"FindMimeFromData failed: %08x
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
mime
,
mimeTextPlain
),
"wrong mime
\n
"
);
ok
(
!
lstrcmpW
(
mime
,
mimeTextPlain
),
"wrong mime
: %s
\n
"
,
wine_dbgstr_w
(
mime
)
);
CoTaskMemFree
(
mime
);
CoTaskMemFree
(
mime
);
hres
=
pFindMimeFromData
(
NULL
,
NULL
,
data1
,
0
,
mimeTextPlain
,
0
,
NULL
,
0
);
hres
=
pFindMimeFromData
(
NULL
,
NULL
,
data1
,
0
,
mimeTextPlain
,
0
,
NULL
,
0
);
...
...
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