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
72e2b7f1
Commit
72e2b7f1
authored
Feb 15, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added DOCHOST_DOCCANNAVIGATE tests.
parent
c723015f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+24
-2
No files found.
dlls/mshtml/tests/htmldoc.c
View file @
72e2b7f1
...
...
@@ -112,6 +112,7 @@ DEFINE_EXPECT(Exec_SETTITLE);
DEFINE_EXPECT
(
Exec_HTTPEQUIV
);
DEFINE_EXPECT
(
Exec_MSHTML_PARSECOMPLETE
);
DEFINE_EXPECT
(
Exec_Explorer_69
);
DEFINE_EXPECT
(
Exec_DOCCANNAVIGATE
);
DEFINE_EXPECT
(
Invoke_AMBIENT_USERMODE
);
DEFINE_EXPECT
(
Invoke_AMBIENT_DLCONTROL
);
DEFINE_EXPECT
(
Invoke_AMBIENT_OFFLINEIFNOTCONNECTED
);
...
...
@@ -187,6 +188,8 @@ static const WCHAR http_urlW[] =
static
const
WCHAR
doc_url
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
't'
,
'e'
,
's'
,
't'
,
':'
,
'd'
,
'o'
,
'c'
,
0
};
static
const
WCHAR
about_blank_url
[]
=
{
'a'
,
'b'
,
'o'
,
'u'
,
't'
,
':'
,
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
0
};
#define DOCHOST_DOCCANNAVIGATE 0
static
HRESULT
QueryInterface
(
REFIID
riid
,
void
**
ppv
);
static
void
test_MSHTML_QueryStatus
(
IHTMLDocument2
*
,
DWORD
);
...
...
@@ -2496,8 +2499,19 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
};
}
if
(
IsEqualGUID
(
&
CGID_DocHostCmdPriv
,
pguidCmdGroup
))
return
E_FAIL
;
/* TODO */
if
(
IsEqualGUID
(
&
CGID_DocHostCmdPriv
,
pguidCmdGroup
))
{
switch
(
nCmdID
)
{
case
DOCHOST_DOCCANNAVIGATE
:
CHECK_EXPECT
(
Exec_DOCCANNAVIGATE
);
ok
(
pvaIn
!=
NULL
,
"pvaIn == NULL
\n
"
);
ok
(
pvaOut
==
NULL
,
"pvaOut != NULL
\n
"
);
ok
(
V_VT
(
pvaIn
)
==
VT_UNKNOWN
,
"V_VT(pvaIn) != VT_UNKNOWN
\n
"
);
/* FIXME: test V_UNKNOWN(pvaIn) == window */
return
S_OK
;
default:
return
E_FAIL
;
/* TODO */
}
}
if
(
IsEqualGUID
(
&
CGID_Explorer
,
pguidCmdGroup
))
{
ok
(
nCmdexecopt
==
0
,
"nCmdexecopts=%08x
\n
"
,
nCmdexecopt
);
...
...
@@ -2990,6 +3004,7 @@ static void test_Load(IPersistMoniker *persist, IMoniker *mon)
SET_EXPECT
(
GetOptionKeyPath
);
SET_EXPECT
(
GetOverrideKeyPath
);
SET_EXPECT
(
GetWindow
);
SET_EXPECT
(
Exec_DOCCANNAVIGATE
);
SET_EXPECT
(
QueryStatus_SETPROGRESSTEXT
);
SET_EXPECT
(
Exec_SETPROGRESSMAX
);
SET_EXPECT
(
Exec_SETPROGRESSPOS
);
...
...
@@ -3030,6 +3045,7 @@ static void test_Load(IPersistMoniker *persist, IMoniker *mon)
CHECK_CALLED
(
GetOptionKeyPath
);
CHECK_CALLED
(
GetOverrideKeyPath
);
CHECK_CALLED
(
GetWindow
);
todo_wine
CHECK_CALLED
(
Exec_DOCCANNAVIGATE
);
CHECK_CALLED
(
QueryStatus_SETPROGRESSTEXT
);
CHECK_CALLED
(
Exec_SETPROGRESSMAX
);
CHECK_CALLED
(
Exec_SETPROGRESSPOS
);
...
...
@@ -3670,6 +3686,8 @@ static void test_ClientSite(IOleObject *oleobj, DWORD flags)
SET_EXPECT
(
GetOverrideKeyPath
);
}
SET_EXPECT
(
GetWindow
);
if
(
flags
&
CLIENTSITE_EXPECTPATH
)
SET_EXPECT
(
Exec_DOCCANNAVIGATE
);
SET_EXPECT
(
QueryStatus_SETPROGRESSTEXT
);
SET_EXPECT
(
Exec_SETPROGRESSMAX
);
SET_EXPECT
(
Exec_SETPROGRESSPOS
);
...
...
@@ -3689,6 +3707,8 @@ static void test_ClientSite(IOleObject *oleobj, DWORD flags)
CHECK_CALLED
(
GetOverrideKeyPath
);
}
CHECK_CALLED
(
GetWindow
);
if
(
flags
&
CLIENTSITE_EXPECTPATH
)
todo_wine
CHECK_CALLED
(
Exec_DOCCANNAVIGATE
);
CHECK_CALLED
(
QueryStatus_SETPROGRESSTEXT
);
CHECK_CALLED
(
Exec_SETPROGRESSMAX
);
CHECK_CALLED
(
Exec_SETPROGRESSPOS
);
...
...
@@ -4773,6 +4793,7 @@ static void test_UIActivate(BOOL do_load, BOOL use_ipsex, BOOL use_ipsw)
SET_EXPECT
(
GetOptionKeyPath
);
SET_EXPECT
(
GetOverrideKeyPath
);
SET_EXPECT
(
GetWindow
);
SET_EXPECT
(
Exec_DOCCANNAVIGATE
);
SET_EXPECT
(
QueryStatus_SETPROGRESSTEXT
);
SET_EXPECT
(
Exec_SETPROGRESSMAX
);
SET_EXPECT
(
Exec_SETPROGRESSPOS
);
...
...
@@ -4790,6 +4811,7 @@ static void test_UIActivate(BOOL do_load, BOOL use_ipsex, BOOL use_ipsw)
CHECK_CALLED
(
GetOptionKeyPath
);
CHECK_CALLED
(
GetOverrideKeyPath
);
CHECK_CALLED
(
GetWindow
);
todo_wine
CHECK_CALLED
(
Exec_DOCCANNAVIGATE
);
CHECK_CALLED
(
QueryStatus_SETPROGRESSTEXT
);
CHECK_CALLED
(
Exec_SETPROGRESSMAX
);
CHECK_CALLED
(
Exec_SETPROGRESSPOS
);
...
...
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