Author: gadamopoulos
Date: Sat Mar 11 13:23:49 2017
New Revision: 74147
URL:
http://svn.reactos.org/svn/reactos?rev=74147&view=rev
Log:
[COMCTL32_APITEST] -Add a couple more tests.
Modified:
trunk/rostests/apitests/comctl32/button.c
Modified: trunk/rostests/apitests/comctl32/button.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/comctl32/button.…
==============================================================================
--- trunk/rostests/apitests/comctl32/button.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/comctl32/button.c [iso-8859-1] Sat Mar 11 13:23:49 2017
@@ -486,7 +486,7 @@
}
}
-MSG_ENTRY erase_sequence[]={
+MSG_ENTRY paint_sequence[]={
{2, WM_PAINT, POST},
{1, WM_ERASEBKGND},
{1, WM_PRINTCLIENT},
@@ -495,8 +495,26 @@
{1, WM_NOTIFY, SENT, 0, NM_CUSTOMDRAW},
{0,0}};
-MSG_ENTRY erase_nonthemed_sequence[]={
- {2, WM_PAINT, POST},
+MSG_ENTRY paint_nonthemed_sequence[]={
+ {2, WM_PAINT, POST},
+ {1, WM_CTLCOLORBTN},
+ {1, WM_NOTIFY, SENT, 0, NM_CUSTOMDRAW},
+ {1, WM_NOTIFY, SENT, 0, NM_CUSTOMDRAW},
+ {0,0}};
+
+MSG_ENTRY redraw_sequence[]={
+ {2, WM_PAINT, POST},
+ {2, WM_ERASEBKGND},
+ {1, WM_ERASEBKGND},
+ {1, WM_PRINTCLIENT},
+ {1, WM_CTLCOLORBTN},
+ {1, WM_NOTIFY, SENT, 0, NM_CUSTOMDRAW},
+ {1, WM_NOTIFY, SENT, 0, NM_CUSTOMDRAW},
+ {0,0}};
+
+MSG_ENTRY redraw_nonthemed_sequence[]={
+ {2, WM_PAINT, POST},
+ {2, WM_ERASEBKGND},
{1, WM_CTLCOLORBTN},
{1, WM_NOTIFY, SENT, 0, NM_CUSTOMDRAW},
{1, WM_NOTIFY, SENT, 0, NM_CUSTOMDRAW},
@@ -640,11 +658,15 @@
RedrawWindow(hWnd2, NULL, NULL, RDW_INTERNALPAINT);
FlushMessages();
- COMPARE_CACHE(erase_nonthemed_sequence);
+ COMPARE_CACHE(paint_nonthemed_sequence);
RedrawWindow(hWnd2, NULL, NULL, RDW_INVALIDATE);
FlushMessages();
- COMPARE_CACHE(erase_nonthemed_sequence);
+ COMPARE_CACHE(paint_nonthemed_sequence);
+
+ RedrawWindow(hWnd2, NULL, NULL, RDW_ERASE | RDW_INVALIDATE);
+ FlushMessages();
+ COMPARE_CACHE(redraw_nonthemed_sequence);
SendMessageW(hWnd2, WM_PRINTCLIENT, 0, PRF_ERASEBKGND);
FlushMessages();
@@ -728,11 +750,15 @@
RedrawWindow(hWnd2, NULL, NULL, RDW_INTERNALPAINT);
FlushMessages();
- COMPARE_CACHE(erase_sequence);
+ COMPARE_CACHE(paint_sequence);
RedrawWindow(hWnd2, NULL, NULL, RDW_INVALIDATE);
FlushMessages();
- COMPARE_CACHE(erase_sequence);
+ COMPARE_CACHE(paint_sequence);
+
+ RedrawWindow(hWnd2, NULL, NULL, RDW_ERASE | RDW_INVALIDATE);
+ FlushMessages();
+ COMPARE_CACHE(redraw_sequence);
SendMessageW(hWnd2, WM_PRINTCLIENT, 0, PRF_ERASEBKGND);
FlushMessages();