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
c00121a6
Commit
c00121a6
authored
Jun 19, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fixed event tests.
parent
db1c43c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
40 deletions
+8
-40
events.c
dlls/mshtml/tests/events.c
+8
-40
No files found.
dlls/mshtml/tests/events.c
View file @
c00121a6
...
...
@@ -483,9 +483,7 @@ static void _test_event_x(unsigned line, IHTMLEventObj *event, LONG exl)
hres
=
IHTMLEventObj_get_x
(
event
,
&
l
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_x failed: %08x
\n
"
,
hres
);
if
(
exl
==
-
10
)
/* don't test the exact value */
todo_wine
ok_
(
__FILE__
,
line
)(
l
>
0
,
"x = %d
\n
"
,
l
);
else
if
(
exl
!=
-
10
)
/* don't test the exact value */
ok_
(
__FILE__
,
line
)(
l
==
exl
,
"x = %d, expected %d
\n
"
,
l
,
exl
);
}
...
...
@@ -496,9 +494,7 @@ static void _test_event_y(unsigned line, IHTMLEventObj *event, LONG exl)
hres
=
IHTMLEventObj_get_y
(
event
,
&
l
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_y failed: %08x
\n
"
,
hres
);
if
(
exl
==
-
10
)
/* don't test the exact value */
todo_wine
ok_
(
__FILE__
,
line
)(
l
>
0
,
"y = %d
\n
"
,
l
);
else
if
(
exl
!=
-
10
)
/* don't test the exact value */
ok_
(
__FILE__
,
line
)(
l
==
exl
,
"y = %d, expected %d
\n
"
,
l
,
exl
);
}
...
...
@@ -509,14 +505,8 @@ static void _test_event_clientx(unsigned line, IHTMLEventObj *event, LONG exl)
hres
=
IHTMLEventObj_get_clientX
(
event
,
&
l
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_clientX failed: %08x
\n
"
,
hres
);
if
(
exl
==
-
10
)
{
/* don't test the exact value */
if
(
xy_todo
)
todo_wine
ok_
(
__FILE__
,
line
)(
l
>
0
,
"clientX = %d
\n
"
,
l
);
else
ok_
(
__FILE__
,
line
)(
l
>
0
,
"clientX = %d
\n
"
,
l
);
}
else
{
if
(
exl
!=
-
10
)
/* don't test the exact value */
ok_
(
__FILE__
,
line
)(
l
==
exl
,
"clientX = %d, expected %d
\n
"
,
l
,
exl
);
}
}
static
void
_test_event_clienty
(
unsigned
line
,
IHTMLEventObj
*
event
,
LONG
exl
)
...
...
@@ -526,14 +516,8 @@ static void _test_event_clienty(unsigned line, IHTMLEventObj *event, LONG exl)
hres
=
IHTMLEventObj_get_clientY
(
event
,
&
l
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_clientY failed: %08x
\n
"
,
hres
);
if
(
exl
==
-
10
)
{
/* don't test the exact value */
if
(
xy_todo
)
todo_wine
ok_
(
__FILE__
,
line
)(
l
>
0
,
"clientY = %d
\n
"
,
l
);
else
ok_
(
__FILE__
,
line
)(
l
>
0
,
"clientY = %d
\n
"
,
l
);
}
else
{
if
(
exl
!=
-
10
)
/* don't test the exact value */
ok_
(
__FILE__
,
line
)(
l
==
exl
,
"clientY = %d, expected %d
\n
"
,
l
,
exl
);
}
}
static
void
_test_event_offsetx
(
unsigned
line
,
IHTMLEventObj
*
event
,
LONG
exl
)
...
...
@@ -543,9 +527,7 @@ static void _test_event_offsetx(unsigned line, IHTMLEventObj *event, LONG exl)
hres
=
IHTMLEventObj_get_offsetX
(
event
,
&
l
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_offsetX failed: %08x
\n
"
,
hres
);
if
(
exl
==
-
10
)
/* don't test the exact value */
todo_wine
ok_
(
__FILE__
,
line
)(
l
>
0
,
"offsetX = %d
\n
"
,
l
);
else
if
(
exl
!=
-
10
)
/* don't test the exact value */
ok_
(
__FILE__
,
line
)(
l
==
exl
,
"offsetX = %d, expected %d
\n
"
,
l
,
exl
);
}
...
...
@@ -556,9 +538,7 @@ static void _test_event_offsety(unsigned line, IHTMLEventObj *event, LONG exl)
hres
=
IHTMLEventObj_get_offsetY
(
event
,
&
l
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_offsetY failed: %08x
\n
"
,
hres
);
if
(
exl
==
-
10
)
/* don't test the exact value */
todo_wine
ok_
(
__FILE__
,
line
)(
l
>
0
,
"offsetY = %d
\n
"
,
l
);
else
if
(
exl
!=
-
10
)
/* don't test the exact value */
ok_
(
__FILE__
,
line
)(
l
==
exl
,
"offsetY = %d, expected %d
\n
"
,
l
,
exl
);
}
...
...
@@ -569,14 +549,8 @@ static void _test_event_screenx(unsigned line, IHTMLEventObj *event, LONG exl)
hres
=
IHTMLEventObj_get_screenX
(
event
,
&
l
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_screenX failed: %08x
\n
"
,
hres
);
if
(
exl
==
-
10
)
{
/* don't test the exact value */
if
(
xy_todo
)
todo_wine
ok_
(
__FILE__
,
line
)(
l
>
0
,
"screenX = %d
\n
"
,
l
);
else
ok_
(
__FILE__
,
line
)(
l
>
0
,
"screenX = %d
\n
"
,
l
);
}
else
{
if
(
exl
!=
-
10
)
/* don't test the exact value */
ok_
(
__FILE__
,
line
)(
l
==
exl
,
"screenX = %d, expected %d
\n
"
,
l
,
exl
);
}
}
static
void
_test_event_screeny
(
unsigned
line
,
IHTMLEventObj
*
event
,
LONG
exl
)
...
...
@@ -586,14 +560,8 @@ static void _test_event_screeny(unsigned line, IHTMLEventObj *event, LONG exl)
hres
=
IHTMLEventObj_get_screenY
(
event
,
&
l
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_screenY failed: %08x
\n
"
,
hres
);
if
(
exl
==
-
10
)
{
/* don't test the exact value */
if
(
xy_todo
)
todo_wine
ok_
(
__FILE__
,
line
)(
l
>
0
,
"screenY = %d
\n
"
,
l
);
else
ok_
(
__FILE__
,
line
)(
l
>
0
,
"screenY = %d
\n
"
,
l
);
}
else
{
if
(
exl
!=
-
10
)
/* don't test the exact value for -10 */
ok_
(
__FILE__
,
line
)(
l
==
exl
,
"screenY = %d, expected %d
\n
"
,
l
,
exl
);
}
}
static
void
_test_event_type
(
unsigned
line
,
IHTMLEventObj
*
event
,
const
char
*
exstr
)
...
...
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