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
7d4e9f77
Commit
7d4e9f77
authored
Jul 31, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLPluginsCollection::get_length implementation.
parent
b25d49c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
omnavigator.c
dlls/mshtml/omnavigator.c
+6
-2
dom.c
dlls/mshtml/tests/dom.c
+18
-2
No files found.
dlls/mshtml/omnavigator.c
View file @
7d4e9f77
...
...
@@ -145,8 +145,12 @@ static HRESULT WINAPI HTMLPluginsCollection_Invoke(IHTMLPluginsCollection *iface
static
HRESULT
WINAPI
HTMLPluginsCollection_get_length
(
IHTMLPluginsCollection
*
iface
,
LONG
*
p
)
{
HTMLPluginsCollection
*
This
=
impl_from_IHTMLPluginsCollection
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
/* IE always returns 0 here */
*
p
=
0
;
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLPluginsCollection_refresh
(
IHTMLPluginsCollection
*
iface
,
VARIANT_BOOL
reload
)
...
...
dlls/mshtml/tests/dom.c
View file @
7d4e9f77
...
...
@@ -3760,12 +3760,19 @@ static void test_location(IHTMLDocument2 *doc)
ok
(
!
ref
,
"location chould be destroyed here
\n
"
);
}
static
void
test_plugins_col
(
I
OmNavigator
*
nav
)
static
void
test_plugins_col
(
I
HTMLDocument2
*
doc
)
{
IHTMLPluginsCollection
*
col
,
*
col2
;
IHTMLWindow2
*
window
;
IOmNavigator
*
nav
;
ULONG
ref
;
LONG
len
;
HRESULT
hres
;
window
=
get_doc_window
(
doc
);
hres
=
IHTMLWindow2_get_navigator
(
window
,
&
nav
);
IHTMLWindow2_Release
(
window
);
hres
=
IOmNavigator_get_plugins
(
nav
,
&
col
);
ok
(
hres
==
S_OK
,
"get_plugins failed: %08x
\n
"
,
hres
);
...
...
@@ -3776,8 +3783,15 @@ static void test_plugins_col(IOmNavigator *nav)
test_disp2
((
IUnknown
*
)
col
,
&
DIID_DispCPlugins
,
&
IID_IHTMLPluginsCollection
,
"[object]"
);
len
=
0xdeadbeef
;
hres
=
IHTMLPluginsCollection_get_length
(
col
,
&
len
);
ok
(
hres
==
S_OK
,
"get_length failed: %08x
\n
"
,
hres
);
ok
(
!
len
,
"length = %d
\n
"
,
len
);
ref
=
IHTMLPluginsCollection_Release
(
col
);
ok
(
!
ref
,
"ref=%d
\n
"
,
ref
);
IOmNavigator_Release
(
nav
);
}
static
void
test_mime_types_col
(
IOmNavigator
*
nav
)
...
...
@@ -3892,7 +3906,6 @@ static void test_navigator(IHTMLDocument2 *doc)
skip
(
"nonstandard user agent
\n
"
);
}
test_plugins_col
(
navigator
);
test_mime_types_col
(
navigator
);
ref
=
IOmNavigator_Release
(
navigator
);
...
...
@@ -4263,6 +4276,7 @@ static void test_defaults(IHTMLDocument2 *doc)
test_compatmode
(
doc
);
test_location
(
doc
);
test_navigator
(
doc
);
test_plugins_col
(
doc
);
elem2
=
get_elem2_iface
((
IUnknown
*
)
elem
);
hres
=
IHTMLElement2_get_currentStyle
(
elem2
,
&
cstyle
);
...
...
@@ -4653,6 +4667,8 @@ static void test_elems(IHTMLDocument2 *doc)
IHTMLElementCollection_Release
(
collection
);
}
test_plugins_col
(
doc
);
elem
=
get_doc_elem
(
doc
);
test_elem_all
((
IUnknown
*
)
elem
,
all_types
+
1
,
sizeof
(
all_types
)
/
sizeof
(
all_types
[
0
])
-
1
);
IHTMLElement_Release
(
elem
);
...
...
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