Fix utc_blink_cb_popup_blocked
authorAntonio Gomes <a1.gomes@samsung.com>
Thu, 26 Nov 2015 19:18:59 +0000 (15:18 -0400)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 07:55:23 +0000 (07:55 +0000)
commitee0f261b28e434c7382afea5e6b0f241fe3cb92d
tree83c3e1a8adc7deb4caa91a94c85765994aabf7b8
parentf5a327c024fc1ffed27228bff784a51b6827f22f
Fix utc_blink_cb_popup_blocked

Patch executes Javascript strings with non-null user callbacks
with FRH::ExecuteJavaScriptWithUserGestureForTests rather than
FRH::ExecuteJavaScriptForTests.

Former allows window opening.

Patch also fixes the test utc_blink_cb_popup_blocked itself. First part
of the test relies on the popup opening setting being disabled, so
patch ensures it by explicitly set it to FALSE. Second part of the test,
it assumes that popup opening is enabled, so we set it explicitly to
TRUE. Last, after executing the tests, patch sets the setting value to
its original status (see changes in PostSetUp and PreTearDown).

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13056

Reviewed by: a.renevier, djmix.kim

Change-Id: I2c2218406901735007435251e0549570b9d031bf
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
tizen_src/ewk/efl_integration/eweb_view.cc
tizen_src/ewk/unittest/utc_blink_cb_popup_blocked.cpp