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
bb82d669
Commit
bb82d669
authored
Jun 16, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Remove explicit todo flag values from static test data.
parent
fd4affc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
editor.c
dlls/riched20/tests/editor.c
+18
-18
No files found.
dlls/riched20/tests/editor.c
View file @
bb82d669
...
@@ -4425,33 +4425,33 @@ struct exsetsel_s {
...
@@ -4425,33 +4425,33 @@ struct exsetsel_s {
LRESULT
expected_retval
;
LRESULT
expected_retval
;
int
expected_getsel_start
;
int
expected_getsel_start
;
int
expected_getsel_end
;
int
expected_getsel_end
;
int
_getsel_todo_wine
;
BOOL
todo
;
};
};
static
const
struct
exsetsel_s
exsetsel_tests
[]
=
{
static
const
struct
exsetsel_s
exsetsel_tests
[]
=
{
/* sanity tests */
/* sanity tests */
{
5
,
10
,
10
,
5
,
10
,
0
},
{
5
,
10
,
10
,
5
,
10
},
{
15
,
17
,
17
,
15
,
17
,
0
},
{
15
,
17
,
17
,
15
,
17
},
/* test cpMax > strlen() */
/* test cpMax > strlen() */
{
0
,
100
,
18
,
0
,
18
,
0
},
{
0
,
100
,
18
,
0
,
18
},
/* test cpMin < 0 && cpMax >= 0 after cpMax > strlen() */
/* test cpMin < 0 && cpMax >= 0 after cpMax > strlen() */
{
-
1
,
1
,
17
,
17
,
17
,
0
},
{
-
1
,
1
,
17
,
17
,
17
},
/* test cpMin == cpMax */
/* test cpMin == cpMax */
{
5
,
5
,
5
,
5
,
5
,
0
},
{
5
,
5
,
5
,
5
,
5
},
/* test cpMin < 0 && cpMax >= 0 (bug 4462) */
/* test cpMin < 0 && cpMax >= 0 (bug 4462) */
{
-
1
,
0
,
5
,
5
,
5
,
0
},
{
-
1
,
0
,
5
,
5
,
5
},
{
-
1
,
17
,
5
,
5
,
5
,
0
},
{
-
1
,
17
,
5
,
5
,
5
},
{
-
1
,
18
,
5
,
5
,
5
,
0
},
{
-
1
,
18
,
5
,
5
,
5
},
/* test cpMin < 0 && cpMax < 0 */
/* test cpMin < 0 && cpMax < 0 */
{
-
1
,
-
1
,
17
,
17
,
17
,
0
},
{
-
1
,
-
1
,
17
,
17
,
17
},
{
-
4
,
-
5
,
17
,
17
,
17
,
0
},
{
-
4
,
-
5
,
17
,
17
,
17
},
/* test cpMin >=0 && cpMax < 0 (bug 6814) */
/* test cpMin >=0 && cpMax < 0 (bug 6814) */
{
0
,
-
1
,
18
,
0
,
18
,
0
},
{
0
,
-
1
,
18
,
0
,
18
},
{
17
,
-
5
,
18
,
17
,
18
,
0
},
{
17
,
-
5
,
18
,
17
,
18
},
{
18
,
-
3
,
17
,
17
,
17
,
0
},
{
18
,
-
3
,
17
,
17
,
17
},
/* test if cpMin > cpMax */
/* test if cpMin > cpMax */
{
15
,
19
,
18
,
15
,
18
,
0
},
{
15
,
19
,
18
,
15
,
18
},
{
19
,
15
,
18
,
15
,
18
,
0
},
{
19
,
15
,
18
,
15
,
18
},
/* cpMin == strlen() && cpMax > cpMin */
/* cpMin == strlen() && cpMax > cpMin */
{
17
,
18
,
18
,
17
,
18
},
{
17
,
18
,
18
,
17
,
18
},
{
17
,
50
,
18
,
17
,
18
},
{
17
,
50
,
18
,
17
,
18
},
...
@@ -4470,7 +4470,7 @@ static void check_EM_EXSETSEL(HWND hwnd, const struct exsetsel_s *setsel, int id
...
@@ -4470,7 +4470,7 @@ static void check_EM_EXSETSEL(HWND hwnd, const struct exsetsel_s *setsel, int id
SendMessageA
(
hwnd
,
EM_GETSEL
,
(
WPARAM
)
&
start
,
(
LPARAM
)
&
end
);
SendMessageA
(
hwnd
,
EM_GETSEL
,
(
WPARAM
)
&
start
,
(
LPARAM
)
&
end
);
if
(
setsel
->
_getsel_todo_wine
)
{
if
(
setsel
->
todo
)
{
todo_wine
{
todo_wine
{
ok
(
start
==
setsel
->
expected_getsel_start
&&
end
==
setsel
->
expected_getsel_end
,
"EM_EXSETSEL(%d): expected (%d,%d) actual:(%d,%d)
\n
"
,
id
,
setsel
->
expected_getsel_start
,
setsel
->
expected_getsel_end
,
start
,
end
);
ok
(
start
==
setsel
->
expected_getsel_start
&&
end
==
setsel
->
expected_getsel_end
,
"EM_EXSETSEL(%d): expected (%d,%d) actual:(%d,%d)
\n
"
,
id
,
setsel
->
expected_getsel_start
,
setsel
->
expected_getsel_end
,
start
,
end
);
}
}
...
@@ -4507,7 +4507,7 @@ static void check_EM_SETSEL(HWND hwnd, const struct exsetsel_s *setsel, int id)
...
@@ -4507,7 +4507,7 @@ static void check_EM_SETSEL(HWND hwnd, const struct exsetsel_s *setsel, int id)
SendMessageA
(
hwnd
,
EM_GETSEL
,
(
WPARAM
)
&
start
,
(
LPARAM
)
&
end
);
SendMessageA
(
hwnd
,
EM_GETSEL
,
(
WPARAM
)
&
start
,
(
LPARAM
)
&
end
);
if
(
setsel
->
_getsel_todo_wine
)
{
if
(
setsel
->
todo
)
{
todo_wine
{
todo_wine
{
ok
(
start
==
setsel
->
expected_getsel_start
&&
end
==
setsel
->
expected_getsel_end
,
"EM_SETSEL(%d): expected (%d,%d) actual:(%d,%d)
\n
"
,
id
,
setsel
->
expected_getsel_start
,
setsel
->
expected_getsel_end
,
start
,
end
);
ok
(
start
==
setsel
->
expected_getsel_start
&&
end
==
setsel
->
expected_getsel_end
,
"EM_SETSEL(%d): expected (%d,%d) actual:(%d,%d)
\n
"
,
id
,
setsel
->
expected_getsel_start
,
setsel
->
expected_getsel_end
,
start
,
end
);
}
}
...
...
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