#define FEATURE_LOCATION "http://tizen.org/feature/location"
#define FEATURE_LOCATION_GPS "http://tizen.org/feature/location.gps"
#define FEATURE_LOCATION_WPS "http://tizen.org/feature/location.wps"
-#define FEATURE_LOCATION_GPS_SATELITE "http://tizen.org/feature/location.gps.satellite"
+#define FEATURE_LOCATION_GPS_SATELITE "http://tizen.org/feature/location.gps.satellite"
/**
* @function LocationManagerGetError
* @description Maps error enumerators to string values
}
return szErrorVal;
-
+
}
/**
*/
void LocationGpsStatusSatelliteUpdatedCB(int num_of_active, int num_of_inview, time_t timestamp, void *user_data)
{
-
+
FPRINTF("[Line : %d][%s]Invoked LocationGpsStatusSatelliteUpdatedCB\\n", __LINE__, API_NAMESPACE);
return;
}
#ifdef WEARABLE //Starts WEARABLE
/**
* @function LocationUpdatedCB
- * @description Called at defined interval with updated location information
+ * @description Called at defined interval with updated location information
* @parameter location_error_e error, double latitude, double longitude, double altitude, time_t timestamp, double speed, double direction, double climb, void *user_data
* @return NA
*/
FPRINTF("[Line : %d][%s] Feature is not supported\\n", __LINE__, API_NAMESPACE);
return 0;
}
-
- location_method_e eLocationMethod = LOCATIONS_METHOD_GPS;
+
+ location_method_e eLocationMethod = LOCATIONS_METHOD_HYBRID;
location_manager_h hLocationManager = NULL;
-
-
+
+
int nRet = location_manager_create(eLocationMethod, &hLocationManager);
PRINT_RESULT(LOCATIONS_ERROR_NONE, nRet, "location_manager_create", LocationManagerGetError(nRet));
{
START_TEST;
int nInterval = 1;
- bool bIsLocationFeatureSupported = false;
+ bool bIsLocationFeatureSupported = false;
bool bIsLocationGpsFeatureSupported = false;
+
IS_FEATURE_SUPPORTED(FEATURE_LOCATION, bIsLocationFeatureSupported, API_NAMESPACE);
IS_FEATURE_SUPPORTED(FEATURE_LOCATION_GPS_SATELITE, bIsLocationGpsFeatureSupported, API_NAMESPACE);
- if ( ( false == bIsLocationFeatureSupported ) || ( bIsLocationGpsFeatureSupported == false) )
- {
- FPRINTF("[Line : %d][%s] Feature is not supported\\n", __LINE__, API_NAMESPACE);
- return 0;
- }
- location_method_e eLocationMethod = LOCATIONS_METHOD_GPS;
+
+ if (( false == bIsLocationFeatureSupported ) || ( bIsLocationGpsFeatureSupported == false))
+ {
+ FPRINTF("[Line : %d][%s] Feature is not supported\\n", __LINE__, API_NAMESPACE);
+ return 0;
+ }
+ location_method_e eLocationMethod = LOCATIONS_METHOD_HYBRID;
location_manager_h hLocationManager = NULL;
int nRet = location_manager_create(eLocationMethod, &hLocationManager);
PRINT_RESULT(LOCATIONS_ERROR_NONE, nRet, "location_manager_create", LocationManagerGetError(nRet));
-
+
nRet = gps_status_set_satellite_updated_cb(hLocationManager, LocationGpsStatusSatelliteUpdatedCB, nInterval, NULL);// Target API
if(nRet ==LOCATIONS_ERROR_NONE)
{
* @since_tizen 3.0
* @author SRID(arvin.mittal)
* @reviewer SRID(shobhit.v)
- * @type auto
+ * @type auto
* @description enable the mock location when developer mode is enable
* @scenario enable the mock location when developer mode is enable
- * @apicovered location_manager_enable_mock_location
+ * @apicovered location_manager_enable_mock_location
* @passcase When location_manager_enable_mock_location is successful.
* @failcase If target api fails or any precondition api fails.
* @precondition NA
int CTc_Location_PrivilegeLocation_enable_mock_location(void)
{
START_TEST;
-
+
bool bIsLocationFeatureSupported = false;
bool bIsLocationGpsFeatureSupported = false;
bool bIsLocationWpsFeatureSupported = false;
FPRINTF("[Line : %d][%s] Feature is not supported\\n", __LINE__, API_NAMESPACE);
return 0;
}
-
+
bool bIsEnable = false;
-
+
int nRet = location_manager_enable_mock_location(bIsEnable);
PRINT_RESULT(TIZEN_ERROR_PERMISSION_DENIED, nRet, "location_manager_enable_mock_location", LocationManagerGetError(nRet));
* @author SRID(gaurav.m2)
* @reviewer SRID(shobhit.v)
* @type auto
-* @scenario Request to update current location once.
+* @scenario Request to update current location once.
* @apicovered location_manager_create, location_manager_start, location_manager_stop, location_manager_get_location and location_manager_destroy
* @passcase If target privileged API returns TIZEN_ERROR_PERMISSION_DENIED
* @failcase If target privileged API does not return TIZEN_ERROR_PERMISSION_DENIED or non-privileged precondition API returns non error value
int CTc_Location_PrivilegeLocation_location_manager_request_single_location(void)
{
START_TEST;
-
+
bool g_bIsSupported =false;
int nTimeout = 1;
- //g_bIsSupported = (Location_Manager_Check_System_Info_Feature_Supported(FEATURE_LOCATION));
+
IS_FEATURE_SUPPORTED(FEATURE_LOCATION, g_bIsSupported, API_NAMESPACE);
if ( !g_bIsSupported )
{
FPRINTF("[Line : %d][%s] [%s] is not supported\\n", __LINE__, API_NAMESPACE, FEATURE_LOCATION);
return 0;
}
-
+
bool g_bIsgpsSupported =false;
- //g_bIsgpsSupported = (Location_Manager_Check_System_Info_Feature_Supported(FEATURE_LOCATION_GPS));
+
IS_FEATURE_SUPPORTED(FEATURE_LOCATION_GPS, g_bIsgpsSupported, API_NAMESPACE);
if ( !g_bIsgpsSupported )
{
FPRINTF("[Line : %d][%s] [%s] is not supported\\n", __LINE__, API_NAMESPACE, FEATURE_LOCATION_GPS);
return 0;
}
-
- location_method_e eLocationMethod = LOCATIONS_METHOD_GPS;
+
+ location_method_e eLocationMethod = LOCATIONS_METHOD_HYBRID;
location_manager_h hLocationManager = NULL;
int nRet = location_manager_create(eLocationMethod, &hLocationManager);
PRINT_RESULT(LOCATIONS_ERROR_NONE, nRet, "location_manager_create", LocationManagerGetError(nRet));
- nRet = location_manager_request_single_location ( hLocationManager, nTimeout, LocationUpdatedCB, NULL);
+ nRet = location_manager_request_single_location ( hLocationManager, nTimeout, LocationUpdatedCB, NULL);
if(nRet == LOCATIONS_ERROR_NONE)
{
- location_manager_destroy(hLocationManager);
+ location_manager_destroy(hLocationManager);
}
PRINT_RESULT_CLEANUP(TIZEN_ERROR_PERMISSION_DENIED, nRet, "location_manager_request_single_location", LocationManagerGetError(nRet), location_manager_destroy(hLocationManager));
- location_manager_destroy(hLocationManager);
-
+ location_manager_destroy(hLocationManager);
+
return 0;
}
#endif //End WEARABLE
\ No newline at end of file
case MEDIA_CONTENT_ERROR_INVALID_OPERATION : szErrorVal = "MEDIA_CONTENT_ERROR_INVALID_OPERATION" ; break;
case MEDIA_CONTENT_ERROR_DB_BUSY : szErrorVal = "MEDIA_CONTENT_ERROR_DB_BUSY" ; break;
case MEDIA_CONTENT_ERROR_NETWORK : szErrorVal = "MEDIA_CONTENT_ERROR_NETWORK" ; break;
+ case MEDIA_CONTENT_FILE_NO_SPACE_ON_DEVICE: szErrorVal = "MEDIA_CONTENT_FILE_NO_SPACE_ON_DEVICE" ; break;
+ case MEDIA_CONTENT_ERROR_UNSUPPORTED_CONTENT: szErrorVal = "MEDIA_CONTENT_ERROR_UNSUPPORTED_CONTENT" ; break;
+ case MEDIA_CONTENT_ERROR_NOT_SUPPORTED: szErrorVal = "MEDIA_CONTENT_ERROR_NOT_SUPPORTED" ; break;
+ case MEDIA_CONTENT_ERROR_PERMISSION_DENIED: szErrorVal = "MEDIA_CONTENT_ERROR_PERMISSION_DENIED" ; break;
default : szErrorVal = "MEDIA_CONTENT_ERROR_UNKNOWN" ; break;
}
return szErrorVal;
return true;
}
+// Callback Function to get list of service providers
+bool MapsServiceProviderForeachCb(char* maps_provider, void* user_data)
+{
+ memset( g_szMapsProvider, '\0', sizeof(char)*BUFFER);
+ if(maps_provider != NULL)
+ {
+ strcpy(g_szMapsProvider, "MAPZEN");
+ FPRINTF("[Line : %d][%s] Provider list from maps_service_foreach_provider is = %s\\n", __LINE__, API_NAMESPACE, g_szMapsProvider);
+ }
+ else
+ return false;
+
+ g_nCheckCb = true;
+ return true;
+}
/**
* @function ITs_maps_place_startup2
}
// Callback Function to get list of service providers
-static bool MapsServiceProviderForeachCb2(char* maps_provider, void* user_data)
+static bool MapsServiceProviderForeachCb(char* maps_provider, void* user_data)
{
memset( g_szMapsProvider, '\0', sizeof(char)*BUFFER);
strcpy(g_szMapsProvider, "MAPZEN");
remove(ERR_LOG);
}
bool bMapsFeatureSupported = TCTCheckSystemInfoFeatureSupported(MAPS_FEATURE, API_NAMESPACE);
- int nRet = maps_service_foreach_provider(MapsServiceProviderForeachCb2, NULL);
+ int nRet = maps_service_foreach_provider(MapsServiceProviderForeachCb, NULL);
if ( nRet != MAPS_ERROR_NONE)
{
FPRINTF("[Line : %d][%s] maps_service_foreach_provider fail in startup error returned : %s \\n", __LINE__, API_NAMESPACE , MapServiceGetError(nRet));
g_nCheckCb = false;
- int nRet = maps_service_foreach_provider(MapsServiceProviderForeachCb2, NULL);
+ int nRet = maps_service_foreach_provider(MapsServiceProviderForeachCb, NULL);
PRINT_RESULT(MAPS_ERROR_NONE, nRet, "maps_service_foreach_provider", MapServiceGetError(nRet));
if(g_nCheckCb != true)
nRet = media_streamer_unset_interrupted_cb(streamer);
PRINT_RESULT(MEDIA_STREAMER_ERROR_NONE, nRet, "media_streamer_unset_interrupted_cb", MediaStreamerGetError(nRet));
+ return 0;
}
/** @} */
/** @} */
int ITc_context_trigger_rule_entry_add_option_int_p(void)
{
START_TEST;
+ bool place_supported = false;
+
+ bool comm_supported = false;
+ context_trigger_rule_event_is_supported(CONTEXT_TRIGGER_EVENT_PLACE, &place_supported);
+ if (!place_supported) {
+ FPRINTF("[Line : %d][%s] Item not supported. Skip test. (Place)\\n", __LINE__, API_NAMESPACE);
+ return 0;
+ }
int nRet = context_trigger_rule_event_create(CONTEXT_TRIGGER_EVENT_PLACE, CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, &g_Event);
PRINT_RESULT(CONTEXT_TRIGGER_ERROR_NONE, nRet, "context_trigger_rule_event_create", ContextTriggerGetError(nRet));
int ret = cbhm_open_service(&cbhm_handle);
assert_eq(ret, CBHM_ERROR_NONE);
+ cbhm_close_service(cbhm_handle);
+
return 0;
}
context_trigger_rule_entry_h c_comm = NULL;
context_trigger_rule_entry_h c_comm2 = NULL;
+ bool hdp_supported = false;
+ bool batt_supported = false;
+ bool place_supported = false;
+ bool comm_supported = false;
+
+ context_trigger_rule_event_is_supported(CONTEXT_TRIGGER_EVENT_HEADPHONE, &hdp_supported);
+ context_trigger_rule_event_is_supported(CONTEXT_TRIGGER_EVENT_BATTERY, &batt_supported);
+ context_trigger_rule_event_is_supported(CONTEXT_TRIGGER_EVENT_PLACE, &place_supported);
+ context_trigger_rule_condition_is_supported(CONTEXT_TRIGGER_CONDITION_COMMUNICATION_FREQUENCY, &comm_supported);
+
context_trigger_rule_create(CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, &rule);
context_trigger_rule_event_create(CONTEXT_TRIGGER_EVENT_HEADPHONE, CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, &e_headphone);
context_trigger_rule_event_create(CONTEXT_TRIGGER_EVENT_BATTERY, CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, &e_battery);
assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_PARAMETER);
// Err: Event already added
- error = context_trigger_rule_add_entry(rule, e_headphone);
- assert_eq(error, CONTEXT_TRIGGER_ERROR_NONE);
- error = context_trigger_rule_add_entry(rule, e_battery);
- assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
+ if (hdp_supported && batt_supported) {
+ error = context_trigger_rule_add_entry(rule, e_headphone);
+ assert_eq(error, CONTEXT_TRIGGER_ERROR_NONE);
+ error = context_trigger_rule_add_entry(rule, e_battery);
+ assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
+ } else {
+ PRINT_INFO("Not supported item included. Skip test.");
+ }
// Err: Mandatory option not added (Event)
- error = context_trigger_rule_add_entry(rule, e_place);
- assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
+ if (place_supported) {
+ error = context_trigger_rule_add_entry(rule, e_place);
+ assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
+ } else {
+ PRINT_INFO("Not supported item included. Skip test.");
+ }
- // Err: Mandatory option not added (Condition)
- context_trigger_rule_entry_add_option_string(c_comm, CONTEXT_TRIGGER_DAY_OF_WEEK, CONTEXT_TRIGGER_WEEKDAY);
- context_trigger_rule_entry_add_key(c_comm, CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, CONTEXT_TRIGGER_RANK);
- context_trigger_rule_entry_add_comparison_int(c_comm, CONTEXT_TRIGGER_RANK, CONTEXT_TRIGGER_LESS_THAN, 6);
- error = context_trigger_rule_add_entry(rule, c_comm);
- assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
+ if (comm_supported) {
+ // Err: Mandatory option not added (Condition)
+ context_trigger_rule_entry_add_option_string(c_comm, CONTEXT_TRIGGER_DAY_OF_WEEK, CONTEXT_TRIGGER_WEEKDAY);
+ context_trigger_rule_entry_add_key(c_comm, CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, CONTEXT_TRIGGER_RANK);
+ context_trigger_rule_entry_add_comparison_int(c_comm, CONTEXT_TRIGGER_RANK, CONTEXT_TRIGGER_LESS_THAN, 6);
+ error = context_trigger_rule_add_entry(rule, c_comm);
+ assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
- // Err: Condition without comparison data (key & value not added)
- context_trigger_rule_entry_add_option_string(c_comm2, CONTEXT_TRIGGER_ADDRESS, "010-1111-2222");
- context_trigger_rule_entry_add_option_string(c_comm2, CONTEXT_TRIGGER_DAY_OF_WEEK, CONTEXT_TRIGGER_WEEKDAY);
- error = context_trigger_rule_add_entry(rule, c_comm2);
- assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
+ // Err: Condition without comparison data (key & value not added)
+ context_trigger_rule_entry_add_option_string(c_comm2, CONTEXT_TRIGGER_ADDRESS, "010-1111-2222");
+ context_trigger_rule_entry_add_option_string(c_comm2, CONTEXT_TRIGGER_DAY_OF_WEEK, CONTEXT_TRIGGER_WEEKDAY);
+ error = context_trigger_rule_add_entry(rule, c_comm2);
+ assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
- // Err: Condition without comparison data (only key added)
- context_trigger_rule_entry_add_key(c_comm2, CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, CONTEXT_TRIGGER_RANK);
- error = context_trigger_rule_add_entry(rule, c_comm2);
- assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
+ // Err: Condition without comparison data (only key added)
+ context_trigger_rule_entry_add_key(c_comm2, CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, CONTEXT_TRIGGER_RANK);
+ error = context_trigger_rule_add_entry(rule, c_comm2);
+ assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
+ } else {
+ PRINT_INFO("Not supported item included. Skip test.");
+ }
context_trigger_rule_entry_destroy(e_headphone);
context_trigger_rule_entry_destroy(e_battery);
int error = CONTEXT_TRIGGER_ERROR_NONE;
context_trigger_rule_entry_h event = NULL;
+ bool place_supported = false;
+ context_trigger_rule_event_is_supported(CONTEXT_TRIGGER_EVENT_PLACE, &place_supported);
+ if (!place_supported) {
+ PRINT_INFO("Not supported item. Skip test.");
+ return 0;
+ }
+
context_trigger_rule_event_create(CONTEXT_TRIGGER_EVENT_PLACE, CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, &event);
error = context_trigger_rule_entry_add_option_int(event, CONTEXT_TRIGGER_PLACE_ID, 1);
assert_eq(error, CONTEXT_TRIGGER_ERROR_NONE);
context_trigger_rule_entry_h condition = NULL;
context_trigger_rule_entry_h condition2 = NULL;
+ bool place_supported = false;
+ bool app_supported = false;
+ bool batt_supported = false;
+
+ context_trigger_rule_event_is_supported(CONTEXT_TRIGGER_EVENT_PLACE, &place_supported);
+ context_trigger_rule_condition_is_supported(CONTEXT_TRIGGER_CONDITION_APP_USE_FREQUENCY, &app_supported);
+ context_trigger_rule_condition_is_supported(CONTEXT_TRIGGER_CONDITION_BATTERY, &batt_supported);
+
context_trigger_rule_event_create(CONTEXT_TRIGGER_EVENT_PLACE, CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, &event);
context_trigger_rule_condition_create(CONTEXT_TRIGGER_CONDITION_APP_USE_FREQUENCY, CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, &condition);
context_trigger_rule_condition_create(CONTEXT_TRIGGER_CONDITION_BATTERY, CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, &condition2);
error = context_trigger_rule_entry_add_option_int(NULL, CONTEXT_TRIGGER_PLACE_ID, 1);
assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_PARAMETER);
- // Err: Invalid option key
- error = context_trigger_rule_entry_add_option_int(event, CONTEXT_TRIGGER_RANK, 1);
- assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
+ if (place_supported) {
+ // Err: Invalid parameter
+ error = context_trigger_rule_entry_add_option_int(event, NULL, 1);
+ assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_PARAMETER);
- // Err: Invalid option value
- error = context_trigger_rule_entry_add_option_int(event, CONTEXT_TRIGGER_PLACE_ID, -1);
- assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
+ // Err: Invalid option key
+ error = context_trigger_rule_entry_add_option_int(event, CONTEXT_TRIGGER_RANK, 1);
+ assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
+
+ // Err: Invalid option value
+ error = context_trigger_rule_entry_add_option_int(event, CONTEXT_TRIGGER_PLACE_ID, -1);
+ assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
+ } else {
+ PRINT_INFO("Not supported item included. Skip test.");
+ }
// Err: Invalid option value type
- error = context_trigger_rule_entry_add_option_int(condition, CONTEXT_TRIGGER_ADDRESS, 1);
- assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
+ if (app_supported) {
+ error = context_trigger_rule_entry_add_option_int(condition, CONTEXT_TRIGGER_ADDRESS, 1);
+ assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
+ } else {
+ PRINT_INFO("Not supported item included. Skip test.");
+ }
// Err: Item with no option
- error = context_trigger_rule_entry_add_option_int(condition, CONTEXT_TRIGGER_IS_CONNECTED, CONTEXT_TRIGGER_TRUE);
- assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
+ if (batt_supported) {
+ error = context_trigger_rule_entry_add_option_int(condition2, CONTEXT_TRIGGER_IS_CONNECTED, CONTEXT_TRIGGER_TRUE);
+ assert_eq(error, CONTEXT_TRIGGER_ERROR_INVALID_RULE);
+ } else {
+ PRINT_INFO("Not supported item included. Skip test.");
+ }
context_trigger_rule_entry_destroy(event);
context_trigger_rule_entry_destroy(condition);
context_trigger_rule_entry_h event = NULL;
context_trigger_rule_entry_h condition = NULL;
+ bool place_supported = false;
+ bool comm_supported = false;
+
+ context_trigger_rule_event_is_supported(CONTEXT_TRIGGER_EVENT_PLACE, &place_supported);
+ context_trigger_rule_condition_is_supported(CONTEXT_TRIGGER_CONDITION_COMMUNICATION_FREQUENCY, &comm_supported);
+ if (!(place_supported && comm_supported)) {
+ PRINT_INFO("Not supported item included. Skip test.");
+ return 0;
+ }
+
// Err: Invalid parmater
context_trigger_rule_event_create(CONTEXT_TRIGGER_EVENT_PLACE, CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, &event);
context_trigger_rule_condition_create(CONTEXT_TRIGGER_CONDITION_COMMUNICATION_FREQUENCY, CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, &condition);
int utc_webkit2_ewk_manifest_icons_count_get_func_p(void)
{
// 1. Open page
- assert_eq(EINA_TRUE, loadURL("http://www.free.fr"));
+ assert_eq(EINA_TRUE, loadURL("https://www.chromestatus.com"));
utc_webkit2_main_loop_begin();
assert_eq(EINA_TRUE, isLoadSucceed);
* @description Callback function for receiving the manifest.
*/
static void DidReceiveRequestManifest(Evas_Object* view, Ewk_View_Request_Manifest* manifest, void* user_data) {
- if (manifest != NULL && ewk_manifest_icons_height_get(manifest, 0, 0) == 36)
+ if (manifest != NULL && ewk_manifest_icons_height_get(manifest, 0, 0) == 72)
isSucceed = EINA_TRUE;
else
isSucceed = EINA_FALSE;
int utc_webkit2_ewk_manifest_icons_height_get_func_p(void)
{
// 1. Open page.
- assert_eq(EINA_TRUE, loadURL("http://www.free.fr"));
+ assert_eq(EINA_TRUE, loadURL("https://www.chromestatus.com"));
utc_webkit2_main_loop_begin();
assert_eq(EINA_TRUE, isLoadSucceed);
int utc_webkit2_ewk_manifest_icons_height_get_func_n(void)
{
// 1. Open page.
- assert_eq(EINA_TRUE, loadURL("http://www.free.fr"));
+ assert_eq(EINA_TRUE, loadURL("https://www.chromestatus.com"));
utc_webkit2_main_loop_begin();
assert_eq(EINA_TRUE, isLoadSucceed);
int utc_webkit2_ewk_manifest_icons_sizes_count_get_func_p(void)
{
// 1. Open page
- assert_eq(EINA_TRUE, loadURL("http://www.free.fr"));
+ assert_eq(EINA_TRUE, loadURL("https://www.chromestatus.com"));
utc_webkit2_main_loop_begin();
assert_eq(EINA_TRUE, isLoadSucceed);
int utc_webkit2_ewk_manifest_icons_sizes_count_get_func_n(void)
{
// 1. Open page.
- assert_eq(EINA_TRUE, loadURL("http://www.free.fr"));
+ assert_eq(EINA_TRUE, loadURL("https://www.chromestatus.com"));
utc_webkit2_main_loop_begin();
assert_eq(EINA_TRUE, isLoadSucceed);
* @description Callback function for receiving the manifest.
*/
static void DidReceiveRequestManifest(Evas_Object* view, Ewk_View_Request_Manifest* manifest, void* user_data) {
- if (manifest != NULL && !strcmp(ewk_manifest_icons_src_get(manifest, 0),"http://www.free.fr/freebox/im/icon_36.png"))
+ if (manifest != NULL && !strcmp(ewk_manifest_icons_src_get(manifest, 0),"https://www.chromestatus.com/static/img/crstatus_72.png"))
isSucceed = EINA_TRUE;
else
isSucceed = EINA_FALSE;
int utc_webkit2_ewk_manifest_icons_src_get_func_p(void)
{
// 1. Open page.
- assert_eq(EINA_TRUE, loadURL("http://www.free.fr"));
+ assert_eq(EINA_TRUE, loadURL("https://www.chromestatus.com"));
utc_webkit2_main_loop_begin();
assert_eq(EINA_TRUE, isLoadSucceed);
int utc_webkit2_ewk_manifest_icons_src_get_func_n(void)
{
// 1. Open page.
- assert_eq(EINA_TRUE, loadURL("http://www.free.fr"));
+ assert_eq(EINA_TRUE, loadURL("https://www.chromestatus.com"));
utc_webkit2_main_loop_begin();
assert_eq(EINA_TRUE, isLoadSucceed);
int utc_webkit2_ewk_manifest_icons_type_get_func_p(void)
{
// 1. Open page.
- assert_eq(EINA_TRUE, loadURL("http://www.free.fr"));
+ assert_eq(EINA_TRUE, loadURL("https://www.chromestatus.com"));
utc_webkit2_main_loop_begin();
assert_eq(EINA_TRUE, isLoadSucceed);
int utc_webkit2_ewk_manifest_icons_type_get_func_n(void)
{
// 1. Open page.
- assert_eq(EINA_TRUE, loadURL("http://www.free.fr"));
+ assert_eq(EINA_TRUE, loadURL("https://www.chromestatus.com"));
utc_webkit2_main_loop_begin();
assert_eq(EINA_TRUE, isLoadSucceed);
* @description Callback function for receiving the manifest.
*/
static void DidReceiveRequestManifest(Evas_Object* view, Ewk_View_Request_Manifest* manifest, void* user_data) {
- if (manifest != NULL && ewk_manifest_icons_width_get(manifest, 0, 0) == 36)
+ if (manifest != NULL && ewk_manifest_icons_width_get(manifest, 0, 0) == 72)
isSucceed = EINA_TRUE;
else
isSucceed = EINA_FALSE;
int utc_webkit2_ewk_manifest_icons_width_get_func_p(void)
{
// 1. Open page.
- assert_eq(EINA_TRUE, loadURL("http://www.free.fr"));
+ assert_eq(EINA_TRUE, loadURL("https://www.chromestatus.com"));
utc_webkit2_main_loop_begin();
assert_eq(EINA_TRUE, isLoadSucceed);
int utc_webkit2_ewk_manifest_icons_width_get_func_n(void)
{
// 1. Open page.
- assert_eq(EINA_TRUE, loadURL("http://www.free.fr"));
+ assert_eq(EINA_TRUE, loadURL("https://www.chromestatus.com"));
utc_webkit2_main_loop_begin();
assert_eq(EINA_TRUE, isLoadSucceed);
* @description Callback function for receiving the manifest.
*/
static void DidReceiveRequestManifest(Evas_Object* view, Ewk_View_Request_Manifest* manifest, void* user_data) {
- if (manifest != NULL && !strcmp(ewk_manifest_name_get(manifest),"Free ADSL"))
+ if (manifest != NULL && !strcmp(ewk_manifest_name_get(manifest),"Chrome Platform Status"))
isSucceed = EINA_TRUE;
else
isSucceed = EINA_FALSE;
int utc_webkit2_ewk_manifest_name_get_func_p(void)
{
// 1. Open page.
- assert_eq(EINA_TRUE, loadURL("http://www.free.fr"));
+ assert_eq(EINA_TRUE, loadURL("https://www.chromestatus.com"));
utc_webkit2_main_loop_begin();
assert_eq(EINA_TRUE, isLoadSucceed);
// If callback function received NULL, it is normal operation.
assert_eq(EINA_FALSE, isSucceed);
-
+
// 3. Get the name from NULL object, and if it returns nullptr it is normal operation.
if (ewk_manifest_name_get(NULL) == NULL)
assert(EINA_TRUE);
* @description Callback function for receiving the manifest.
*/
static void DidReceiveRequestManifest(Evas_Object* view, Ewk_View_Request_Manifest* manifest, void* user_data) {
- if (manifest != NULL && ewk_manifest_orientation_type_get(manifest) == WebScreenOrientationLockLandscape)
+ if (manifest != NULL && ewk_manifest_orientation_type_get(manifest) == WebScreenOrientationLockAny)
isSucceed = EINA_TRUE;
else
isSucceed = EINA_FALSE;
int utc_webkit2_ewk_manifest_orientation_type_get_func_p(void)
{
// 1. Open page.
- assert_eq(EINA_TRUE, loadURL("http://www.free.fr"));
+ assert_eq(EINA_TRUE, loadURL("https://dev.opera.com"));
utc_webkit2_main_loop_begin();
assert_eq(EINA_TRUE, isLoadSucceed);
* @description Callback function for receiving the manifest.
*/
static void DidReceiveRequestManifest(Evas_Object* view, Ewk_View_Request_Manifest* manifest, void* user_data) {
- if (manifest != NULL && !strcmp(ewk_manifest_start_url_get(manifest),"http://www.free.fr/freebox/index.html"))
+ if (manifest != NULL && !strcmp(ewk_manifest_start_url_get(manifest),"https://www.chromestatus.com/features"))
isSucceed = EINA_TRUE;
else
isSucceed = EINA_FALSE;
int utc_webkit2_ewk_manifest_start_url_get_func_p(void)
{
// 1. Open page.
- assert_eq(EINA_TRUE, loadURL("http://www.free.fr"));
+ assert_eq(EINA_TRUE, loadURL("https://www.chromestatus.com"));
utc_webkit2_main_loop_begin();
assert_eq(EINA_TRUE, isLoadSucceed);
// If callback function received NULL, it is normal operation.
assert_eq(EINA_FALSE, isSucceed);
-
+
// 3. Get the start url from NULL object, and if it returns nullptr it is normal operation.
if (ewk_manifest_start_url_get(NULL) == NULL)
assert(EINA_TRUE);
int utc_webkit2_ewk_manifest_web_display_mode_get_func_p(void)
{
// 1. Open page.
- assert_eq(EINA_TRUE, loadURL("http://www.free.fr"));
+ assert_eq(EINA_TRUE, loadURL("https://www.chromestatus.com"));
utc_webkit2_main_loop_begin();
assert_eq(EINA_TRUE, isLoadSucceed);
int utc_webkit2_ewk_view_request_manifest_p(void)
{
// 1. Open page.
- assert_eq(EINA_TRUE, loadURL("http://www.free.fr"));
+ assert_eq(EINA_TRUE, loadURL("https://www.chromestatus.com"));
utc_webkit2_main_loop_begin();
assert_eq(EINA_TRUE, isLoadSucceed);