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
fedc26ec
Commit
fedc26ec
authored
Jan 25, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLSelectionObject2::get_typeDetail semi-stub implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f5f4765a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
selection.c
dlls/mshtml/selection.c
+8
-2
dom.c
dlls/mshtml/tests/dom.c
+11
-0
No files found.
dlls/mshtml/selection.c
View file @
fedc26ec
...
...
@@ -307,8 +307,14 @@ static HRESULT WINAPI HTMLSelectionObject2_createRangeCollection(IHTMLSelectionO
static
HRESULT
WINAPI
HTMLSelectionObject2_get_typeDetail
(
IHTMLSelectionObject2
*
iface
,
BSTR
*
p
)
{
HTMLSelectionObject
*
This
=
impl_from_IHTMLSelectionObject2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
static
const
WCHAR
undefinedW
[]
=
{
'u'
,
'n'
,
'd'
,
'e'
,
'f'
,
'i'
,
'n'
,
'e'
,
'd'
,
0
};
FIXME
(
"(%p)->(%p) semi-stub
\n
"
,
This
,
p
);
/* FIXME: We should try to use ISelectionServicesListener::GetTypeDetail here. */
*
p
=
SysAllocString
(
undefinedW
);
return
*
p
?
S_OK
:
E_OUTOFMEMORY
;
}
static
const
IHTMLSelectionObject2Vtbl
HTMLSelectionObject2Vtbl
=
{
...
...
dlls/mshtml/tests/dom.c
View file @
fedc26ec
...
...
@@ -5381,6 +5381,7 @@ static void test_create_img_elem(IHTMLDocument2 *doc)
#define test_doc_selection_type(a,b) _test_doc_selection_type(__LINE__,a,b)
static
void
_test_doc_selection_type
(
unsigned
line
,
IHTMLDocument2
*
doc
,
const
char
*
type
)
{
IHTMLSelectionObject2
*
selection2
;
IHTMLSelectionObject
*
selection
;
BSTR
str
;
HRESULT
hres
;
...
...
@@ -5393,7 +5394,17 @@ static void _test_doc_selection_type(unsigned line, IHTMLDocument2 *doc, const c
ok_
(
__FILE__
,
line
)(
!
strcmp_wa
(
str
,
type
),
"type = %s, expected %s
\n
"
,
wine_dbgstr_w
(
str
),
type
);
SysFreeString
(
str
);
hres
=
IHTMLSelectionObject_QueryInterface
(
selection
,
&
IID_IHTMLSelectionObject2
,
(
void
**
)
&
selection2
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"Could not get IHTMLSelectionObject2 iface: %08x
\n
"
,
hres
);
IHTMLSelectionObject_Release
(
selection
);
hres
=
IHTMLSelectionObject2_get_typeDetail
(
selection2
,
&
str
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_typeDetail failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)(
!
strcmp_wa
(
str
,
"undefined"
),
"typeDetail = %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
IHTMLSelectionObject2_Release
(
selection2
);
}
#define insert_adjacent_elem(a,b,c) _insert_adjacent_elem(__LINE__,a,b,c)
...
...
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