[UTC][ui-viewmgr][Non-ACR][TC update to following viewmgr concept]
authorWoochan Lee <wc0917.lee@samsung.com>
Sat, 10 Dec 2016 05:29:48 +0000 (14:29 +0900)
committerWoochan Lee <wc0917.lee@samsung.com>
Sat, 10 Dec 2016 05:32:34 +0000 (14:32 +0900)
Change-Id: Iffb599f068454a62d638f344849416a10694472d

src/utc/ui-viewmgr/utc-ui-viewmgr.c

index 5ca34f301529f19bf56c79648a3304bfef6d2dfa..eeaf9914ad9f8f15453318bd3129d2029af8dd44 100644 (file)
@@ -1504,7 +1504,7 @@ int utc_ui_viewmgr_view_get_state_p(void)
 
        ui_viewmgr_push_view(view);
 
-       assert_eq(ui_view_get_state(view), UI_VIEW_STATE_ACTIVATE);
+       assert_eq(ui_view_get_state(view), UI_VIEW_STATE_LOAD);
 
        view2 = ui_view_create("page2");
        assert(view2);
@@ -2425,6 +2425,7 @@ int utc_ui_viewmgr_popup_activate_p(void)
        assert(view);
 
        ui_view_set_transition_style(view, "none");
+       assert_eq(ui_view_set_event_cb(view2, UI_VIEW_EVENT_LOAD, view2_load_cb, NULL), UI_VIEWMGR_ERROR_NONE);
        ui_viewmgr_push_view(view);
 
        popup = ui_popup_create(view);
@@ -2492,6 +2493,7 @@ int utc_ui_viewmgr_popup_deactivate_p(void)
        assert(view);
 
        ui_view_set_transition_style(view, "none");
+       assert_eq(ui_view_set_event_cb(view2, UI_VIEW_EVENT_LOAD, view2_load_cb, NULL), UI_VIEWMGR_ERROR_NONE);
        ui_viewmgr_push_view(view);
 
        popup = ui_popup_create(view);
@@ -2563,6 +2565,7 @@ int utc_ui_viewmgr_popup_get_activated_p(void)
        assert(view);
 
        ui_view_set_transition_style(view, "none");
+       assert_eq(ui_view_set_event_cb(view2, UI_VIEW_EVENT_LOAD, view2_load_cb, NULL), UI_VIEWMGR_ERROR_NONE);
        ui_viewmgr_push_view(view);
 
        popup = ui_popup_create(view);