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
8bc118cf
Commit
8bc118cf
authored
Apr 24, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IOmHistory::get_length test.
parent
cf227b5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+28
-1
No files found.
dlls/mshtml/tests/htmldoc.c
View file @
8bc118cf
...
@@ -3309,10 +3309,13 @@ static HRESULT WINAPI TravelLog_Clone(ITravelLog *iface, ITravelLog **pptl)
...
@@ -3309,10 +3309,13 @@ static HRESULT WINAPI TravelLog_Clone(ITravelLog *iface, ITravelLog **pptl)
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
IBrowserService
BrowserService
;
static
DWORD
WINAPI
TravelLog_CountEntries
(
ITravelLog
*
iface
,
IUnknown
*
punk
)
static
DWORD
WINAPI
TravelLog_CountEntries
(
ITravelLog
*
iface
,
IUnknown
*
punk
)
{
{
CHECK_EXPECT
(
CountEntries
);
CHECK_EXPECT
(
CountEntries
);
return
E_NOTIMPL
;
ok
(
punk
==
(
IUnknown
*
)
&
BrowserService
,
"punk != &BrowserService (%p)
\n
"
,
punk
);
return
0
;
}
}
static
HRESULT
WINAPI
TravelLog_Revert
(
ITravelLog
*
iface
)
static
HRESULT
WINAPI
TravelLog_Revert
(
ITravelLog
*
iface
)
...
@@ -5761,6 +5764,29 @@ static void test_load_history(IHTMLDocument2 *doc)
...
@@ -5761,6 +5764,29 @@ static void test_load_history(IHTMLDocument2 *doc)
history_stream
=
NULL
;
history_stream
=
NULL
;
}
}
static
void
test_OmHistory
(
IHTMLDocument2
*
doc
)
{
IHTMLWindow2
*
win
;
IOmHistory
*
hist
;
short
len
;
HRESULT
hres
;
hres
=
IHTMLDocument2_get_parentWindow
(
doc
,
&
win
);
ok
(
hres
==
S_OK
,
"get_parentWindow failed: %08x
\n
"
,
hres
);
hres
=
IHTMLWindow2_get_history
(
win
,
&
hist
);
ok
(
hres
==
S_OK
,
"get_history failed: %08x
\n
"
,
hres
);
IHTMLWindow2_Release
(
win
);
SET_EXPECT
(
CountEntries
);
hres
=
IOmHistory_get_length
(
hist
,
&
len
);
CHECK_CALLED
(
CountEntries
);
ok
(
hres
==
S_OK
,
"get_length failed: %08x
\n
"
,
hres
);
ok
(
len
==
0
,
"len = %d
\n
"
,
len
);
IOmHistory_Release
(
hist
);
}
static
void
test_refresh
(
IHTMLDocument2
*
doc
)
static
void
test_refresh
(
IHTMLDocument2
*
doc
)
{
{
IOleCommandTarget
*
cmdtrg
;
IOleCommandTarget
*
cmdtrg
;
...
@@ -7292,6 +7318,7 @@ static void test_HTMLDocument_http(BOOL with_wbapp)
...
@@ -7292,6 +7318,7 @@ static void test_HTMLDocument_http(BOOL with_wbapp)
test_put_href
(
doc
,
TRUE
,
NULL
,
"about:replace"
,
FALSE
,
FALSE
,
0
);
test_put_href
(
doc
,
TRUE
,
NULL
,
"about:replace"
,
FALSE
,
FALSE
,
0
);
if
(
support_wbapp
)
{
if
(
support_wbapp
)
{
test_load_history
(
doc
);
test_load_history
(
doc
);
test_OmHistory
(
doc
);
test_put_href
(
doc
,
FALSE
,
NULL
,
"about:blank"
,
FALSE
,
FALSE
,
support_wbapp
?
DWL_EXPECT_HISTUPDATE
:
0
);
test_put_href
(
doc
,
FALSE
,
NULL
,
"about:blank"
,
FALSE
,
FALSE
,
support_wbapp
?
DWL_EXPECT_HISTUPDATE
:
0
);
}
}
...
...
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