Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
29be9013
Commit
29be9013
authored
Sep 12, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLTxtRange::put_text tests.
parent
964479af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
dom.c
dlls/mshtml/tests/dom.c
+22
-0
No files found.
dlls/mshtml/tests/dom.c
View file @
29be9013
...
...
@@ -166,6 +166,16 @@ static void _test_range_moveend(unsigned line, IHTMLTxtRange *range, LPWSTR unit
ok_
(
__FILE__
,
line
)
(
c
==
excnt
,
"count=%ld, expected %ld
\n
"
,
c
,
excnt
);
}
#define test_range_put_text(r,t) _test_range_put_text(__LINE__,r,t)
static
void
_test_range_put_text
(
unsigned
line
,
IHTMLTxtRange
*
range
,
LPCWSTR
text
)
{
HRESULT
hres
;
hres
=
IHTMLTxtRange_put_text
(
range
,
(
BSTR
)
text
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"put_text failed: %08x
\n
"
,
hres
);
_test_range_text
(
line
,
range
,
NULL
);
}
#define test_range_inrange(r1,r2,b) _test_range_inrange(__LINE__,r1,r2,b)
static
void
_test_range_inrange
(
unsigned
line
,
IHTMLTxtRange
*
range1
,
IHTMLTxtRange
*
range2
,
VARIANT_BOOL
exb
)
{
...
...
@@ -268,6 +278,8 @@ static void test_txtrange(IHTMLDocument2 *doc)
test_range_moveend
(
range
,
characterW
,
2
,
2
);
test_range_text
(
range
,
"123
\r\n
i"
);
IHTMLTxtRange_Release
(
range
);
hres
=
IHTMLTxtRange_duplicate
(
body_range
,
&
range
);
ok
(
hres
==
S_OK
,
"duplicate failed: %08x
\n
"
,
hres
);
...
...
@@ -319,6 +331,16 @@ static void test_txtrange(IHTMLDocument2 *doc)
test_range_text
(
range
,
"t"
);
IHTMLTxtRange_Release
(
range
);
hres
=
IHTMLTxtRange_duplicate
(
body_range
,
&
range
);
ok
(
hres
==
S_OK
,
"duplicate failed: %08x
\n
"
,
hres
);
test_range_collapse
(
range
,
TRUE
);
test_range_expand
(
range
,
wordW
,
VARIANT_TRUE
,
"test "
);
test_range_put_text
(
range
,
wordW
);
test_range_text
(
body_range
,
"wordabc 123
\r\n
it's text"
);
IHTMLTxtRange_Release
(
range
);
IHTMLTxtRange_Release
(
body_range
);
}
...
...
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