Changing way of test page loading in utc_blink_ewk_view_contents_pdf_get test
authorLukasz Krok <l.krok@samsung.com>
Fri, 19 Dec 2014 14:46:29 +0000 (15:46 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Loading google.com page by ewk_view_url_set() resulted with error:
"Unsafe attempt to load URL  from frame with URL
http://www.google.pl/?gfe_rd=cr&ei=qzWUVKGhG4jBVLOZgsAP.
Domains, protocols and ports must match"
It looks like google.com page changed recently
and made cross-domain call in the test.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=9539
Reviewed by: Janusz Majnert, Min-Soo Koo

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

index 37bdb8e..e7fe159 100755 (executable)
@@ -52,7 +52,13 @@ class utc_blink_ewk_view_contents_pdf_get : public utc_blink_ewk_base
  */
 TEST_F(utc_blink_ewk_view_contents_pdf_get, POS_TEST)
 {
-  bool result = ewk_view_url_set(GetEwkWebView(),"http://www.google.com");
+  char htmlBuffer[] = "<html>"
+                        "<head></head>"
+                        "<body>"
+                        "</body>"
+                      "</html>";
+
+  bool result = ewk_view_html_string_load(GetEwkWebView(), htmlBuffer, NULL, NULL);
   if (!result)
     utc_fail();
   if(Success!=EventLoopStart())