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
51f13ac1
Commit
51f13ac1
authored
Jun 22, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fixed tests on IE8 and change Wine behavior to IE8.
parent
6f5591f3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
8 deletions
+36
-8
dispex.c
dlls/mshtml/dispex.c
+2
-0
htmllocation.c
dlls/mshtml/htmllocation.c
+1
-1
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
omnavigator.c
dlls/mshtml/omnavigator.c
+1
-1
dom.c
dlls/mshtml/tests/dom.c
+30
-6
No files found.
dlls/mshtml/dispex.c
View file @
51f13ac1
...
...
@@ -77,6 +77,8 @@ static REFIID tid_ids[] = {
&
DIID_DispHTMLIFrame
,
&
DIID_DispHTMLImg
,
&
DIID_DispHTMLInputElement
,
&
DIID_DispHTMLLocation
,
&
DIID_DispHTMLNavigator
,
&
DIID_DispHTMLOptionElement
,
&
DIID_DispHTMLSelectElement
,
&
DIID_DispHTMLStyle
,
...
...
dlls/mshtml/htmllocation.c
View file @
51f13ac1
...
...
@@ -293,7 +293,7 @@ static const tid_t HTMLLocation_iface_tids[] = {
};
static
dispex_static_data_t
HTMLLocation_dispex
=
{
NULL
,
I
HTMLLocation_tid
,
Disp
HTMLLocation_tid
,
NULL
,
HTMLLocation_iface_tids
};
...
...
dlls/mshtml/mshtml_private.h
View file @
51f13ac1
...
...
@@ -74,6 +74,8 @@ typedef enum {
DispHTMLIFrame_tid
,
DispHTMLImg_tid
,
DispHTMLInputElement_tid
,
DispHTMLLocation_tid
,
DispHTMLNavigator_tid
,
DispHTMLOptionElement_tid
,
DispHTMLSelectElement_tid
,
DispHTMLStyle_tid
,
...
...
dlls/mshtml/omnavigator.c
View file @
51f13ac1
...
...
@@ -329,7 +329,7 @@ static const tid_t OmNavigator_iface_tids[] = {
};
static
dispex_static_data_t
OmNavigator_dispex
=
{
NULL
,
IOm
Navigator_tid
,
DispHTML
Navigator_tid
,
NULL
,
OmNavigator_iface_tids
};
...
...
dlls/mshtml/tests/dom.c
View file @
51f13ac1
...
...
@@ -438,18 +438,19 @@ static void _test_ifaces(unsigned line, IUnknown *iface, REFIID *iids)
}
}
#define test_
disp
(u,id) _test_disp(__LINE__,u,id)
static
void
_test_disp
(
unsigned
line
,
IUnknown
*
unk
,
const
IID
*
d
iid
)
#define test_
get_dispid
(u,id) _test_disp(__LINE__,u,id)
static
BOOL
_test_get_dispid
(
unsigned
line
,
IUnknown
*
unk
,
IID
*
iid
)
{
IDispatchEx
*
dispex
;
ITypeInfo
*
typeinfo
;
BOOL
ret
=
FALSE
;
UINT
ticnt
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IDispatchEx
,
(
void
**
)
&
dispex
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"Could not get IDispatch: %08x
\n
"
,
hres
);
if
(
FAILED
(
hres
))
return
;
return
FALSE
;
ticnt
=
0xdeadbeef
;
hres
=
IDispatchEx_GetTypeInfoCount
(
dispex
,
&
ticnt
);
...
...
@@ -464,13 +465,36 @@ static void _test_disp(unsigned line, IUnknown *unk, const IID *diid)
hres
=
ITypeInfo_GetTypeAttr
(
typeinfo
,
&
type_attr
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"GetTypeAttr failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
IsEqualGUID
(
&
type_attr
->
guid
,
diid
),
"unexpected guid %s
\n
"
,
dbgstr_guid
(
&
type_attr
->
guid
));
if
(
hres
==
S_OK
)
{
*
iid
=
type_attr
->
guid
;
ret
=
TRUE
;
}
ITypeInfo_ReleaseTypeAttr
(
typeinfo
,
type_attr
);
ITypeInfo_Release
(
typeinfo
);
}
IDispatchEx_Release
(
dispex
);
return
ret
;
}
#define test_disp(u,id) _test_disp(__LINE__,u,id)
static
void
_test_disp
(
unsigned
line
,
IUnknown
*
unk
,
const
IID
*
diid
)
{
IID
iid
;
if
(
_test_get_dispid
(
line
,
unk
,
&
iid
))
ok_
(
__FILE__
,
line
)
(
IsEqualGUID
(
&
iid
,
diid
),
"unexpected guid %s
\n
"
,
dbgstr_guid
(
&
iid
));
}
#define test_disp2(u,id,id2) _test_disp2(__LINE__,u,id,id2)
static
void
_test_disp2
(
unsigned
line
,
IUnknown
*
unk
,
const
IID
*
diid
,
const
IID
*
diid2
)
{
IID
iid
;
if
(
_test_get_dispid
(
line
,
unk
,
&
iid
))
ok_
(
__FILE__
,
line
)
(
IsEqualGUID
(
&
iid
,
diid
)
||
broken
(
IsEqualGUID
(
&
iid
,
diid2
)),
"unexpected guid %s
\n
"
,
dbgstr_guid
(
&
iid
));
}
#define get_elem_iface(u) _get_elem_iface(__LINE__,u)
...
...
@@ -2366,7 +2390,7 @@ static void test_location(IHTMLDocument2 *doc)
IHTMLLocation_Release
(
location2
);
test_ifaces
((
IUnknown
*
)
location
,
location_iids
);
test_disp
((
IUnknown
*
)
l
ocation
,
&
IID_IHTMLLocation
);
test_disp
2
((
IUnknown
*
)
location
,
&
DIID_DispHTMLL
ocation
,
&
IID_IHTMLLocation
);
ref
=
IHTMLLocation_Release
(
location
);
ok
(
!
ref
,
"location chould be destroyed here
\n
"
);
...
...
@@ -2388,7 +2412,7 @@ static void test_navigator(IHTMLDocument2 *doc)
hres
=
IHTMLWindow2_get_navigator
(
window
,
&
navigator
);
ok
(
hres
==
S_OK
,
"get_navigator failed: %08x
\n
"
,
hres
);
ok
(
navigator
!=
NULL
,
"navigator == NULL
\n
"
);
test_disp
((
IUnknown
*
)
n
avigator
,
&
IID_IOmNavigator
);
test_disp
2
((
IUnknown
*
)
navigator
,
&
DIID_DispHTMLN
avigator
,
&
IID_IOmNavigator
);
hres
=
IHTMLWindow2_get_navigator
(
window
,
&
navigator2
);
ok
(
hres
==
S_OK
,
"get_navigator failed: %08x
\n
"
,
hres
);
...
...
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