elm_web: web should NEVER be NULL

if there is no real engine, then atleast none should be created.
This commit is contained in:
Marcel Hollerbach 2018-02-17 21:15:34 +01:00
parent 881fddc7a3
commit 53a3d2403c
1 changed files with 6 additions and 9 deletions

View File

@ -16,16 +16,13 @@ START_TEST (elm_web_legacy_type_check)
web = elm_web_add(win);
if (web)
{
type = elm_object_widget_type_get(web);
ck_assert(type != NULL);
ck_assert(!strcmp(type, "Elm_Web"));
type = elm_object_widget_type_get(web);
ck_assert(type != NULL);
ck_assert(!strcmp(type, "Elm_Web"));
type = evas_object_type_get(web);
ck_assert(type != NULL);
ck_assert(!strcmp(type, "elm_web"));
}
type = evas_object_type_get(web);
ck_assert(type != NULL);
ck_assert(!strcmp(type, "elm_web"));
elm_shutdown();
}