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
05f65a93
Commit
05f65a93
authored
Jun 13, 2014
by
Zhenbo Li
Committed by
Alexandre Julliard
Jun 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLTableCell::cellIndex method implementation.
parent
b42fe709
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
2 deletions
+36
-2
htmltablecell.c
dlls/mshtml/htmltablecell.c
+10
-2
dom.c
dlls/mshtml/tests/dom.c
+26
-0
No files found.
dlls/mshtml/htmltablecell.c
View file @
05f65a93
...
...
@@ -268,8 +268,16 @@ static HRESULT WINAPI HTMLTableCell_get_height(IHTMLTableCell *iface, VARIANT *p
static
HRESULT
WINAPI
HTMLTableCell_get_cellIndex
(
IHTMLTableCell
*
iface
,
LONG
*
p
)
{
HTMLTableCell
*
This
=
impl_from_IHTMLTableCell
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsres
=
nsIDOMHTMLTableCellElement_GetCellIndex
(
This
->
nscell
,
p
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Get CellIndex failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
return
S_OK
;
}
static
const
IHTMLTableCellVtbl
HTMLTableCellVtbl
=
{
...
...
dlls/mshtml/tests/dom.c
View file @
05f65a93
...
...
@@ -5852,6 +5852,25 @@ static void test_tr_elem(IHTMLElement *elem)
IHTMLTableRow_Release
(
row
);
}
static
void
test_td_elem
(
IHTMLElement
*
elem
)
{
IHTMLTableCell
*
cell
;
HRESULT
hres
;
LONG
lval
;
hres
=
IHTMLElement_QueryInterface
(
elem
,
&
IID_IHTMLTableCell
,
(
void
**
)
&
cell
);
ok
(
hres
==
S_OK
,
"Could not get IHTMLTableRow iface: %08x
\n
"
,
hres
);
if
(
FAILED
(
hres
))
return
;
lval
=
0xdeadbeef
;
hres
=
IHTMLTableCell_get_cellIndex
(
cell
,
&
lval
);
ok
(
hres
==
S_OK
,
"get cellIndex failed: %08x
\n
"
,
hres
);
ok
(
lval
==
1
,
"Expected 1, got %d
\n
"
,
lval
);
IHTMLTableCell_Release
(
cell
);
}
static
void
test_label_elem
(
IHTMLElement
*
elem
)
{
IHTMLLabelElement
*
label
;
...
...
@@ -6813,6 +6832,13 @@ static void test_elems(IHTMLDocument2 *doc)
IHTMLElement_Release
(
elem
);
}
elem
=
get_doc_elem_by_id
(
doc
,
"td2"
);
ok
(
elem
!=
NULL
,
"elem == NULL
\n
"
);
if
(
elem
)
{
test_td_elem
(
elem
);
IHTMLElement_Release
(
elem
);
}
elem
=
get_doc_elem_by_id
(
doc
,
"row2"
);
ok
(
elem
!=
NULL
,
"elem == NULL
\n
"
);
if
(
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