Fix for utc_blink_ewk_error_code_get* tests
authorLukasz Krok <l.krok@samsung.com>
Fri, 23 Jan 2015 09:13:43 +0000 (10:13 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
The utc_blink_ewk_error_code_get* tests previous implementation
intention was to cause load error by cancelling resource loading.
As cancelling loading is normal stituation, it shouldn't be treated
as error. It was corrected in I8f4e828bfcc63377678e475f44131dbc749b9c7f
change. Because of the change utc_blink_ewk_error_code_get* tests
stopped to pass.
This commit removes resource loading cancellation from tests logic.
Instead of google.com, "page_that_does_not_exist" is now set as url.
Such url usage causes SERVICE_TEMPORARILY_UNAVAILABLE error code.
If device has no network connection, NETWORK_ERROR code is produced.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=10191
Reviewed by: Janusz Majnert, Piotr Tworek

Change-Id: I1503f966bd782815760ca6a7fbf129d1e1400102
Signed-off-by: Lukasz Krok <l.krok@samsung.com>
tizen_src/ewk/unittest/utc_blink_ewk_error_code_get_func.cpp

index a9d9518..1d93543 100755 (executable)
@@ -21,18 +21,11 @@ protected:
     return false;
   }
 
-  /* Callback for load progress */
-  void LoadProgress(Evas_Object* webview, double progress)
-  {
-    utc_message("LoadProgress");
-    ewk_view_stop(webview);
-  }
-
 protected:
   static const char* const test_url;
 };
 
-const char* const utc_blink_ewk_error_code_get::test_url = "http://google.com";
+const char* const utc_blink_ewk_error_code_get::test_url = "http://page_that_does_not_exist";
 
 /**
  * @brief Positive test case of ewk_error_code_get(). Page is loaded and stopped in between to generate loadError