mirror of https://github.com/deadw00d/AROS.git
Remove non-conclusive test
This commit is contained in:
parent
0c2c4952e3
commit
91c1c27b81
|
@ -25,7 +25,6 @@ struct Data
|
|||
|
||||
int numMessages;
|
||||
|
||||
struct MUI_CustomClass *mcc_Notify;
|
||||
struct MUI_CustomClass *mcc_Rectangle;
|
||||
struct MUI_CustomClass *mcc_Window;
|
||||
|
||||
|
@ -81,7 +80,6 @@ CU_SUITE_SETUP()
|
|||
if (!MUIMasterBase)
|
||||
CUE_SINIT_FAILED;
|
||||
|
||||
mcc_Notify = MUI_CreateCustomClass(NULL, MUIC_Notify, NULL, sizeof(struct Data), dispatcher);
|
||||
mcc_Rectangle = MUI_CreateCustomClass(NULL, MUIC_Rectangle, NULL, sizeof(struct Data), dispatcher);
|
||||
mcc_Window = MUI_CreateCustomClass(NULL, MUIC_Window, NULL, sizeof(struct Data), dispatcher);
|
||||
|
||||
|
@ -90,7 +88,6 @@ CU_SUITE_SETUP()
|
|||
|
||||
CU_SUITE_TEARDOWN()
|
||||
{
|
||||
MUI_DeleteCustomClass(mcc_Notify);
|
||||
MUI_DeleteCustomClass(mcc_Rectangle);
|
||||
MUI_DeleteCustomClass(mcc_Window);
|
||||
CloseLibrary(MUIMasterBase);
|
||||
|
@ -105,44 +102,6 @@ CU_TEST_TEARDOWN()
|
|||
{
|
||||
}
|
||||
|
||||
/* Notes:
|
||||
MUI 3.8 PASS
|
||||
MUI 3.9 FAIL
|
||||
*/
|
||||
static void test_handleevent_notify()
|
||||
{
|
||||
ULONG sigs;
|
||||
Object *app = ApplicationObject, End;
|
||||
Object *obj = NewObject(mcc_Notify->mcc_Class, NULL, TAG_END);
|
||||
Object *win = WindowObject, MUIA_Window_RootObject, RectangleObject, End, End;
|
||||
DoMethod(app, OM_ADDMEMBER, win);
|
||||
|
||||
struct MUI_EventHandlerNode ehnode;
|
||||
ehnode.ehn_Object = obj;
|
||||
ehnode.ehn_Class = mcc_Notify->mcc_Class;
|
||||
ehnode.ehn_Events = IDCMP_INTUITICKS;
|
||||
ehnode.ehn_Priority = 10;
|
||||
DoMethod(win, MUIM_Window_AddEventHandler, &ehnode);
|
||||
|
||||
set(win, MUIA_Window_Open, TRUE);
|
||||
|
||||
numMessages = 0;
|
||||
|
||||
for (int j = 0; j < 10; j++) {
|
||||
sigs = 0;
|
||||
do {
|
||||
DoMethod(app, MUIM_Application_NewInput, &sigs);
|
||||
} while (sigs == 0);
|
||||
Delay(1);
|
||||
}
|
||||
|
||||
CU_ASSERT(numMessages > 0);
|
||||
|
||||
DoMethod(win, MUIM_Window_RemEventHandler, &ehnode);
|
||||
|
||||
MUI_DisposeObject(app);
|
||||
}
|
||||
|
||||
static void test_handleevent_rectangle()
|
||||
{
|
||||
ULONG sigs;
|
||||
|
@ -229,7 +188,6 @@ static void test_handleevent_window()
|
|||
int main(int argc, char** argv)
|
||||
{
|
||||
CU_CI_DEFINE_SUITE("MUIM_HandleEvent_Suite", __cu_suite_setup, __cu_suite_teardown, __cu_test_setup, __cu_test_teardown);
|
||||
CUNIT_CI_TEST(test_handleevent_notify);
|
||||
CUNIT_CI_TEST(test_handleevent_rectangle);
|
||||
CUNIT_CI_TEST(test_handleevent_window);
|
||||
CUNIT_CI_TEST(test_handleevent_rectangle_on_not_visible_tab);
|
||||
|
|
Loading…
Reference in New Issue