Lines Matching refs:exp

80 	struct expo *exp;
89 exp = NULL;
91 ut_assertok(expo_new(name, NULL, &exp));
93 ut_assertnonnull(exp);
94 ut_asserteq(0, exp->scene_id);
95 ut_asserteq(0, exp->next_id);
98 ut_assertnonnull(exp->name);
99 ut_asserteq_str(EXPO_NAME, exp->name);
101 ut_assertok(expo_set_display(exp, dev));
102 expo_destroy(exp);
124 struct expo *exp;
131 ut_assertok(expo_new(EXPO_NAME, NULL, &exp));
134 ut_asserteq(0, exp->next_id);
136 id = scene_new(exp, name, SCENE1, &scn);
140 ut_asserteq(SCENE1 + 1, exp->next_id);
141 ut_asserteq_ptr(exp, scn->expo);
148 title_id = expo_str(exp, "title", STR_SCENE_TITLE, SCENE_TITLE);
153 id = scene_new(exp, SCENE_NAME2, 0, &scn);
157 ut_asserteq(STR_SCENE_TITLE + 2, exp->next_id);
158 ut_asserteq_ptr(exp, scn->expo);
163 expo_destroy(exp);
177 struct expo *exp;
185 ut_assertok(expo_new(EXPO_NAME, NULL, &exp));
186 id = scene_new(exp, SCENE_NAME1, SCENE1, &scn);
198 ut_asserteq(OBJ_LOGO + 1, exp->next_id);
223 expo_destroy(exp);
238 struct expo *exp;
247 ut_assertok(expo_new(EXPO_NAME, NULL, &exp));
248 id = scene_new(exp, SCENE_NAME1, SCENE1, &scn);
281 ut_assertok(expo_apply_theme(exp, node));
284 expo_destroy(exp);
328 struct expo *exp;
333 ut_assertok(expo_new(EXPO_NAME, NULL, &exp));
334 id = scene_new(exp, SCENE_NAME1, SCENE1, &scn);
415 ut_assertok(expo_iter_scene_objs(exp, h_test_iter, &priv));
422 ut_asserteq(-EINVAL, expo_iter_scene_objs(exp, h_test_iter, &priv));
430 expo_destroy(exp);
446 struct expo *exp;
452 ut_assertok(expo_new(EXPO_NAME, NULL, &exp));
453 id = scene_new(exp, SCENE_NAME1, SCENE1, &scn);
455 ut_assertok(expo_set_display(exp, dev));
521 scn2 = expo_lookup_scene_id(exp, SCENE1);
523 scn2 = expo_lookup_scene_id(exp, SCENE2);
527 ut_asserteq(-ECHILD, expo_render(exp));
529 ut_assertok(expo_calc_dims(exp));
572 expo_set_scene_id(exp, SCENE1);
573 ut_assertok(expo_render(exp));
576 ut_assertok(expo_send_key(exp, BKEY_DOWN));
578 ut_assertok(expo_action_get(exp, &act));
582 ut_assertok(expo_render(exp));
592 ut_assertok(expo_send_key(exp, BKEY_SELECT));
594 ut_assertok(expo_action_get(exp, &act));
599 ut_asserteq(-EAGAIN, expo_action_get(exp, &act));
605 expo_set_text_mode(exp, true);
606 ut_assertok(expo_render(exp));
616 ut_assertok(expo_send_key(exp, BKEY_UP));
618 ut_assertok(expo_action_get(exp, &act));
623 ut_assertok(expo_render(exp));
633 expo_destroy(exp);
647 struct expo *exp;
653 ut_assertok(expo_build(node, &exp));
655 ut_asserteq_str("name", exp->name);
656 ut_asserteq(0, exp->scene_id);
657 ut_asserteq(ID_DYNAMIC_START + 24, exp->next_id);
658 ut_asserteq(false, exp->popup);
661 scn = expo_lookup_scene_id(exp, ID_SCENE1);
677 ut_asserteq_str("Test Configuration", expo_get_str(exp, txt->str_id));
689 ut_asserteq_str("CPU speed", expo_get_str(exp, txt->str_id));
705 ut_asserteq_str("2 GHz", expo_get_str(exp, txt->str_id));
712 expo_destroy(exp);