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
50a86f5f
Commit
50a86f5f
authored
Jan 20, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Better stub for ITravelLogClient::FindWindowByIndex.
parent
e174d1d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
3 deletions
+41
-3
htmlwindow.c
dlls/mshtml/htmlwindow.c
+5
-2
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+36
-1
No files found.
dlls/mshtml/htmlwindow.c
View file @
50a86f5f
...
...
@@ -1977,8 +1977,11 @@ static ULONG WINAPI TravelLogClient_Release(ITravelLogClient *iface)
static
HRESULT
WINAPI
TravelLogClient_FindWindowByIndex
(
ITravelLogClient
*
iface
,
DWORD
dwID
,
IUnknown
**
ppunk
)
{
HTMLWindow
*
This
=
impl_from_ITravelLogClient
(
iface
);
FIXME
(
"(%p)->(%d %p)
\n
"
,
This
,
dwID
,
ppunk
);
return
E_NOTIMPL
;
FIXME
(
"(%p)->(%d %p) semi-stub
\n
"
,
This
,
dwID
,
ppunk
);
*
ppunk
=
NULL
;
return
E_FAIL
;
}
static
HRESULT
WINAPI
TravelLogClient_GetWindowData
(
ITravelLogClient
*
iface
,
IStream
*
pStream
,
LPWINDOWDATA
pWinData
)
...
...
dlls/mshtml/tests/htmldoc.c
View file @
50a86f5f
...
...
@@ -6239,6 +6239,38 @@ static void test_target_container(IHTMLDocument2 *doc)
IOleContainer_Release
(
doc_ole_container
);
}
static
void
test_travellog
(
IHTMLDocument2
*
doc
)
{
ITravelLogClient
*
travellog_client
;
IHTMLWindow2
*
window
,
*
top_window
;
IUnknown
*
unk
;
HRESULT
hres
;
window
=
NULL
;
hres
=
IHTMLDocument2_get_parentWindow
(
doc
,
&
window
);
ok
(
hres
==
S_OK
,
"get_parentWindow failed: %08x
\n
"
,
hres
);
ok
(
window
!=
NULL
,
"window = NULL
\n
"
);
hres
=
IHTMLWindow2_get_top
(
window
,
&
top_window
);
IHTMLWindow2_Release
(
window
);
ok
(
hres
==
S_OK
,
"get_top failed: %08x
\n
"
,
hres
);
hres
=
IHTMLWindow2_QueryInterface
(
top_window
,
&
IID_ITravelLogClient
,
(
void
**
)
&
travellog_client
);
IHTMLWindow2_Release
(
top_window
);
if
(
hres
==
E_NOINTERFACE
)
{
win_skip
(
"ITravelLogClient not supported
\n
"
);
return
;
}
ok
(
hres
==
S_OK
,
"Could not get ITraveLogClient iface: %08x
\n
"
,
hres
);
unk
=
(
void
*
)
0xdeadbeef
;
hres
=
ITravelLogClient_FindWindowByIndex
(
travellog_client
,
0
,
&
unk
);
ok
(
hres
==
E_FAIL
,
"FindWindowByIndex failed: %08x
\n
"
,
hres
);
ok
(
!
unk
,
"unk != NULL
\n
"
);
ITravelLogClient_Release
(
travellog_client
);
}
static
void
test_StreamLoad
(
IHTMLDocument2
*
doc
)
{
IPersistStreamInit
*
init
;
...
...
@@ -6613,10 +6645,13 @@ static void test_HTMLDocument_http(BOOL with_wbapp)
test_IsDirty
(
doc
,
S_FALSE
);
test_MSHTML_QueryStatus
(
doc
,
OLECMDF_SUPPORTED
);
test_GetCurMoniker
((
IUnknown
*
)
doc
,
http_mon
,
NULL
);
test_travellog
(
doc
);
nav_url
=
nav_serv_url
=
"http://www.winehq.org/"
;
/* for valid prev nav_url */
if
(
support_wbapp
)
if
(
support_wbapp
)
{
test_put_href
(
doc
,
FALSE
,
"#test"
,
"http://www.winehq.org/#test"
,
FALSE
,
TRUE
);
test_travellog
(
doc
);
}
test_put_href
(
doc
,
FALSE
,
NULL
,
"javascript:external&&undefined"
,
TRUE
,
FALSE
);
test_put_href
(
doc
,
FALSE
,
NULL
,
"about:blank"
,
FALSE
,
FALSE
);
...
...
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