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[] = {
...
@@ -77,6 +77,8 @@ static REFIID tid_ids[] = {
&
DIID_DispHTMLIFrame
,
&
DIID_DispHTMLIFrame
,
&
DIID_DispHTMLImg
,
&
DIID_DispHTMLImg
,
&
DIID_DispHTMLInputElement
,
&
DIID_DispHTMLInputElement
,
&
DIID_DispHTMLLocation
,
&
DIID_DispHTMLNavigator
,
&
DIID_DispHTMLOptionElement
,
&
DIID_DispHTMLOptionElement
,
&
DIID_DispHTMLSelectElement
,
&
DIID_DispHTMLSelectElement
,
&
DIID_DispHTMLStyle
,
&
DIID_DispHTMLStyle
,
...
...
dlls/mshtml/htmllocation.c
View file @
51f13ac1
...
@@ -293,7 +293,7 @@ static const tid_t HTMLLocation_iface_tids[] = {
...
@@ -293,7 +293,7 @@ static const tid_t HTMLLocation_iface_tids[] = {
};
};
static
dispex_static_data_t
HTMLLocation_dispex
=
{
static
dispex_static_data_t
HTMLLocation_dispex
=
{
NULL
,
NULL
,
I
HTMLLocation_tid
,
Disp
HTMLLocation_tid
,
NULL
,
NULL
,
HTMLLocation_iface_tids
HTMLLocation_iface_tids
};
};
...
...
dlls/mshtml/mshtml_private.h
View file @
51f13ac1
...
@@ -74,6 +74,8 @@ typedef enum {
...
@@ -74,6 +74,8 @@ typedef enum {
DispHTMLIFrame_tid
,
DispHTMLIFrame_tid
,
DispHTMLImg_tid
,
DispHTMLImg_tid
,
DispHTMLInputElement_tid
,
DispHTMLInputElement_tid
,
DispHTMLLocation_tid
,
DispHTMLNavigator_tid
,
DispHTMLOptionElement_tid
,
DispHTMLOptionElement_tid
,
DispHTMLSelectElement_tid
,
DispHTMLSelectElement_tid
,
DispHTMLStyle_tid
,
DispHTMLStyle_tid
,
...
...
dlls/mshtml/omnavigator.c
View file @
51f13ac1
...
@@ -329,7 +329,7 @@ static const tid_t OmNavigator_iface_tids[] = {
...
@@ -329,7 +329,7 @@ static const tid_t OmNavigator_iface_tids[] = {
};
};
static
dispex_static_data_t
OmNavigator_dispex
=
{
static
dispex_static_data_t
OmNavigator_dispex
=
{
NULL
,
NULL
,
IOm
Navigator_tid
,
DispHTML
Navigator_tid
,
NULL
,
NULL
,
OmNavigator_iface_tids
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)
...
@@ -438,18 +438,19 @@ static void _test_ifaces(unsigned line, IUnknown *iface, REFIID *iids)
}
}
}
}
#define test_
disp
(u,id) _test_disp(__LINE__,u,id)
#define test_
get_dispid
(u,id) _test_disp(__LINE__,u,id)
static
void
_test_disp
(
unsigned
line
,
IUnknown
*
unk
,
const
IID
*
d
iid
)
static
BOOL
_test_get_dispid
(
unsigned
line
,
IUnknown
*
unk
,
IID
*
iid
)
{
{
IDispatchEx
*
dispex
;
IDispatchEx
*
dispex
;
ITypeInfo
*
typeinfo
;
ITypeInfo
*
typeinfo
;
BOOL
ret
=
FALSE
;
UINT
ticnt
;
UINT
ticnt
;
HRESULT
hres
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IDispatchEx
,
(
void
**
)
&
dispex
);
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IDispatchEx
,
(
void
**
)
&
dispex
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"Could not get IDispatch: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"Could not get IDispatch: %08x
\n
"
,
hres
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
return
;
return
FALSE
;
ticnt
=
0xdeadbeef
;
ticnt
=
0xdeadbeef
;
hres
=
IDispatchEx_GetTypeInfoCount
(
dispex
,
&
ticnt
);
hres
=
IDispatchEx_GetTypeInfoCount
(
dispex
,
&
ticnt
);
...
@@ -464,13 +465,36 @@ static void _test_disp(unsigned line, IUnknown *unk, const IID *diid)
...
@@ -464,13 +465,36 @@ static void _test_disp(unsigned line, IUnknown *unk, const IID *diid)
hres
=
ITypeInfo_GetTypeAttr
(
typeinfo
,
&
type_attr
);
hres
=
ITypeInfo_GetTypeAttr
(
typeinfo
,
&
type_attr
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"GetTypeAttr failed: %08x
\n
"
,
hres
);
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_ReleaseTypeAttr
(
typeinfo
,
type_attr
);
ITypeInfo_Release
(
typeinfo
);
ITypeInfo_Release
(
typeinfo
);
}
}
IDispatchEx_Release
(
dispex
);
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)
#define get_elem_iface(u) _get_elem_iface(__LINE__,u)
...
@@ -2366,7 +2390,7 @@ static void test_location(IHTMLDocument2 *doc)
...
@@ -2366,7 +2390,7 @@ static void test_location(IHTMLDocument2 *doc)
IHTMLLocation_Release
(
location2
);
IHTMLLocation_Release
(
location2
);
test_ifaces
((
IUnknown
*
)
location
,
location_iids
);
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
);
ref
=
IHTMLLocation_Release
(
location
);
ok
(
!
ref
,
"location chould be destroyed here
\n
"
);
ok
(
!
ref
,
"location chould be destroyed here
\n
"
);
...
@@ -2388,7 +2412,7 @@ static void test_navigator(IHTMLDocument2 *doc)
...
@@ -2388,7 +2412,7 @@ static void test_navigator(IHTMLDocument2 *doc)
hres
=
IHTMLWindow2_get_navigator
(
window
,
&
navigator
);
hres
=
IHTMLWindow2_get_navigator
(
window
,
&
navigator
);
ok
(
hres
==
S_OK
,
"get_navigator failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"get_navigator failed: %08x
\n
"
,
hres
);
ok
(
navigator
!=
NULL
,
"navigator == NULL
\n
"
);
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
);
hres
=
IHTMLWindow2_get_navigator
(
window
,
&
navigator2
);
ok
(
hres
==
S_OK
,
"get_navigator failed: %08x
\n
"
,
hres
);
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