On 9/10/07, Dmitry Timoshkov dmitry@codeweavers.com wrote:
"Lei Zhang" thestig@google.com wrote:
In the tests still there is no actual edit contents/selection changes tracking after every message.
-- Dmitry.
I'm sending WM_GETTEXT to the control and then checking the text after every change. Did you mean something else when you say contents changes tracking?
I mean that after every message you send you need to send WM_GETTEXT and EM_GETSEL messages to the control and check what they return, that's what I call actual edit contents/selection changes tracking. By "what they return" I also mean for WM_GETTEXT not only SendMessage return value but also the contents of the buffer.
-- Dmitry.
Yes, I am already checking the return value and the contents of the buffer:
+ r = SendMessage(hwEdit, WM_GETTEXT, 1024, (LPARAM) buffer); + ok(r == strlen(text), "Expected: %d, got len %d\n", strlen(text), r); + ok(strcmp(buffer, text) == 0, "expected %s, got %s\n", text, buffer);
I'll add EM_GETSEL checks as well.