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
2a66b25e
Commit
2a66b25e
authored
Jan 25, 2013
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jan 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Remove most GetLastError tests for IsDomainLegalCookieDomainW.
parent
e1c2f18a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
49 deletions
+1
-49
internet.c
dlls/wininet/tests/internet.c
+1
-49
No files found.
dlls/wininet/tests/internet.c
View file @
2a66b25e
...
...
@@ -878,7 +878,6 @@ static void InternetTimeToSystemTimeW_test(void)
static
void
test_IsDomainLegalCookieDomainW
(
void
)
{
BOOL
ret
;
DWORD
error
;
static
const
WCHAR
empty
[]
=
{
0
};
static
const
WCHAR
dot
[]
=
{
'.'
,
0
};
static
const
WCHAR
uk
[]
=
{
'u'
,
'k'
,
0
};
...
...
@@ -895,8 +894,7 @@ static void test_IsDomainLegalCookieDomainW(void)
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
NULL
,
NULL
);
error
=
GetLastError
();
if
(
!
ret
&&
error
==
ERROR_CALL_NOT_IMPLEMENTED
)
if
(
!
ret
&&
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
))
{
win_skip
(
"IsDomainLegalCookieDomainW is not implemented
\n
"
);
return
;
...
...
@@ -904,82 +902,46 @@ static void test_IsDomainLegalCookieDomainW(void)
ok
(
!
ret
||
broken
(
ret
),
/* IE6 */
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_PARAMETER
,
"got %u expected ERROR_INVALID_PARAMETER
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
com
,
NULL
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_PARAMETER
,
"got %u expected ERROR_INVALID_PARAMETER
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
NULL
,
gmail_com
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_PARAMETER
,
"got %u expected ERROR_INVALID_PARAMETER
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
empty
,
gmail_com
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_NAME
||
broken
(
error
==
ERROR_INVALID_PARAMETER
),
/* IE6 */
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
com
,
empty
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_NAME
||
broken
(
error
==
ERROR_INVALID_PARAMETER
),
/* IE6 */
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
gmail_com
,
dot
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_NAME
||
broken
(
error
==
0xdeadbeef
),
/* IE6 */
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
dot
,
gmail_com
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_NAME
||
broken
(
error
==
0xdeadbeef
),
/* IE6 */
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
com
,
com
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
0xdeadbeef
,
"got %u expected 0xdeadbeef
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
com
,
dot_com
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_NAME
||
broken
(
error
==
0xdeadbeef
),
/* IE6 */
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
dot_com
,
com
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_NAME
||
broken
(
error
==
0xdeadbeef
),
/* IE6 */
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
com
,
gmail_com
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_SXS_KEY_NOT_FOUND
||
error
==
ERROR_SUCCESS
||
/* IE8 on W2K3 */
error
==
0xdeadbeef
,
/* up to IE7 */
"unexpected error: %u
\n
"
,
error
);
ret
=
pIsDomainLegalCookieDomainW
(
gmail_com
,
gmail_com
);
ok
(
ret
,
"IsDomainLegalCookieDomainW failed
\n
"
);
...
...
@@ -992,13 +954,7 @@ static void test_IsDomainLegalCookieDomainW(void)
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
gmail_co_uk
,
co_uk
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_SXS_KEY_NOT_FOUND
||
/* IE8 on XP */
error
==
ERROR_FILE_NOT_FOUND
||
/* IE8 on Vista */
error
==
ERROR_SUCCESS
||
/* IE8 on W2K3 */
error
==
0xdeadbeef
,
/* up to IE7 */
"unexpected error: %u
\n
"
,
error
);
ret
=
pIsDomainLegalCookieDomainW
(
uk
,
co_uk
);
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
...
...
@@ -1017,11 +973,7 @@ static void test_IsDomainLegalCookieDomainW(void)
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
dot_gmail_com
,
mail_gmail_com
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_NAME
||
broken
(
error
==
0xdeadbeef
),
/* IE6 */
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
ret
=
pIsDomainLegalCookieDomainW
(
gmail_com
,
mail_gmail_com
);
ok
(
ret
,
"IsDomainLegalCookieDomainW failed
\n
"
);
...
...
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