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
3ed35309
Commit
3ed35309
authored
Sep 11, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Sep 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Add IHTMLStyle margin tests.
parent
49c96a50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
dom.c
dlls/mshtml/tests/dom.c
+18
-0
No files found.
dlls/mshtml/tests/dom.c
View file @
3ed35309
...
...
@@ -2011,6 +2011,24 @@ static void test_default_style(IHTMLStyle *style)
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"V_VT(v)=%d
\n
"
,
V_VT
(
&
v
));
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"auto"
),
"V_BSTR(v)=%s
\n
"
,
dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
/* margin tests */
str
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLStyle_get_margin
(
style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_margin failed: %08x
\n
"
,
hres
);
ok
(
!
str
,
"margin = %s
\n
"
,
dbgstr_w
(
str
));
str
=
a2bstr
(
"1"
);
hres
=
IHTMLStyle_put_margin
(
style
,
str
);
ok
(
hres
==
S_OK
,
"get_margin failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
hres
=
IHTMLStyle_get_margin
(
style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_margin failed: %08x
\n
"
,
hres
);
ok
(
strcmp_wa
(
str
,
"1"
),
"margin = %s
\n
"
,
dbgstr_w
(
str
));
hres
=
IHTMLStyle_put_margin
(
style
,
NULL
);
ok
(
hres
==
S_OK
,
"get_margin failed: %08x
\n
"
,
hres
);
}
static
void
test_default_selection
(
IHTMLDocument2
*
doc
)
...
...
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