class utc_blink_ewk_policy_decision_frame_get: public utc_blink_ewk_base
{
protected:
+ void PostSetUp() override
+ {
+ Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
+ old_can_open_windows_setting_ = ewk_settings_scripts_can_open_windows_get(settings);
+ ewk_settings_scripts_can_open_windows_set(settings, true);
+ }
+
+ void PreTearDown()
+ {
+ Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
+ ewk_settings_scripts_can_open_windows_set(settings, old_can_open_windows_setting_);
+ }
+
static void frame_check(void* data, Evas_Object* webview, void* event_info)
{
utc_message(" [ %s ]", __PRETTY_FUNCTION__);
EXPECT_TRUE(ewk_policy_decision_frame_get(policy_decision));
owner->EventLoopStop(Success);
}
+
+private:
+ bool old_can_open_windows_setting_;
};
TEST_F(utc_blink_ewk_policy_decision_frame_get, NAVIGATION_DECIDE)