Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
61ca7a57
Commit
61ca7a57
authored
Feb 10, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Mode range tests.
parent
d992735d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
dom.c
dlls/mshtml/tests/dom.c
+13
-2
No files found.
dlls/mshtml/tests/dom.c
View file @
61ca7a57
...
...
@@ -36,7 +36,7 @@ static const char doc_str1[] = "<html><body>test</body></html>";
static
const
char
range_test_str
[]
=
"<html><body>test
\n
a<font size=
\"
2
\"
>bc
\t
123<br /> it's
\r\n
\t
</font>text<br /></body></html>"
;
static
const
char
range_test2_str
[]
=
"<html><body>abc<hr />123</body></html>"
;
"<html><body>abc<hr />123<
br /><hr />def<
/body></html>"
;
static
const
char
elem_test_str
[]
=
"<html><head><title>test</title><style>.body { margin-right: 0px; }</style>"
"<body><a href=
\"
http://test
\"
name=
\"
x
\"
>link</a><input />"
...
...
@@ -948,13 +948,24 @@ static void test_txtrange2(IHTMLDocument2 *doc)
range
=
test_create_body_range
(
doc
);
test_range_text
(
range
,
"abc
\r\n\r\n
123"
);
test_range_text
(
range
,
"abc
\r\n\r\n
123
\r\n\r\n\r\n
def
"
);
test_range_move
(
range
,
characterW
,
5
,
5
);
test_range_moveend
(
range
,
characterW
,
1
,
1
);
test_range_text
(
range
,
"2"
);
test_range_move
(
range
,
characterW
,
-
3
,
-
3
);
test_range_moveend
(
range
,
characterW
,
3
,
3
);
test_range_text
(
range
,
"c
\r\n\r\n
1"
);
test_range_collapse
(
range
,
VARIANT_FALSE
);
test_range_moveend
(
range
,
characterW
,
4
,
4
);
test_range_text
(
range
,
"23"
);
test_range_moveend
(
range
,
characterW
,
1
,
1
);
test_range_text
(
range
,
"23
\r\n\r\n\r\n
d"
);
test_range_moveend
(
range
,
characterW
,
-
1
,
-
1
);
test_range_text
(
range
,
"23"
);
test_range_moveend
(
range
,
characterW
,
-
1
,
-
1
);
test_range_text
(
range
,
"23"
);
test_range_moveend
(
range
,
characterW
,
-
2
,
-
2
);
test_range_text
(
range
,
"2"
);
IHTMLTxtRange_Release
(
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