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
88178a75
Commit
88178a75
authored
Jun 10, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added more command tests.
parent
3543cd3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+33
-0
No files found.
dlls/mshtml/tests/htmldoc.c
View file @
88178a75
...
...
@@ -2656,6 +2656,23 @@ static void test_exec_fontname(IUnknown *unk, LPCWSTR name, LPCWSTR exname)
IOleCommandTarget_Release
(
cmdtrg
);
}
static
void
test_exec_noargs
(
IUnknown
*
unk
,
DWORD
cmdid
)
{
IOleCommandTarget
*
cmdtrg
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IOleCommandTarget
,
(
void
**
)
&
cmdtrg
);
ok
(
hres
==
S_OK
,
"QueryInterface(IID_IOleCommandTarget) failed: %08x
\n
"
,
hres
);
if
(
FAILED
(
hres
))
return
;
hres
=
IOleCommandTarget_Exec
(
cmdtrg
,
&
CGID_MSHTML
,
cmdid
,
OLECMDEXECOPT_DODEFAULT
,
NULL
,
NULL
);
ok
(
hres
==
S_OK
,
"Exec failed: %08x
\n
"
,
hres
);
IOleCommandTarget_Release
(
cmdtrg
);
}
static
HWND
create_container_window
(
void
)
{
static
const
WCHAR
wszHTMLDocumentTest
[]
=
...
...
@@ -3320,6 +3337,22 @@ static void test_editing_mode(void)
test_exec_fontname
(
unk
,
wszArial
,
wszTimesNewRoman
);
test_exec_fontname
(
unk
,
NULL
,
wszArial
);
test_exec_noargs
(
unk
,
IDM_JUSTIFYRIGHT
);
if
(
!
nogecko
)
test_QueryStatus
(
unk
,
&
CGID_MSHTML
,
IDM_JUSTIFYRIGHT
,
OLECMDF_SUPPORTED
|
OLECMDF_ENABLED
|
OLECMDF_LATCHED
);
test_exec_noargs
(
unk
,
IDM_JUSTIFYCENTER
);
test_QueryStatus
(
unk
,
&
CGID_MSHTML
,
IDM_JUSTIFYRIGHT
,
OLECMDF_SUPPORTED
|
OLECMDF_ENABLED
);
if
(
!
nogecko
)
test_QueryStatus
(
unk
,
&
CGID_MSHTML
,
IDM_JUSTIFYCENTER
,
OLECMDF_SUPPORTED
|
OLECMDF_ENABLED
|
OLECMDF_LATCHED
);
test_exec_noargs
(
unk
,
IDM_HORIZONTALLINE
);
test_QueryStatus
(
unk
,
&
CGID_MSHTML
,
IDM_HORIZONTALLINE
,
OLECMDF_SUPPORTED
|
OLECMDF_ENABLED
);
test_UIDeactivate
();
test_InPlaceDeactivate
(
unk
,
TRUE
);
test_Close
(
unk
,
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