+int UtcDaliWebSettingsSetForceZoom(void)
+{
+ ToolkitTestApplication application;
+
+ WebView view = WebView::New();
+ DALI_TEST_CHECK(view);
+
+ Dali::Toolkit::WebSettings* settings = view.GetSettings();
+ DALI_TEST_CHECK(settings != 0)
+
+ // Check the value is true or not
+ bool value = settings->SetForceZoom(true);
+ DALI_TEST_CHECK(value);
+
+ value = settings->IsZoomForced();
+ DALI_TEST_CHECK(value);
+
+ END_TEST;
+}
+
+int UtcDaliWebSettingsSetTextZoomEnabled(void)
+{
+ ToolkitTestApplication application;
+
+ WebView view = WebView::New();
+ DALI_TEST_CHECK(view);
+
+ Dali::Toolkit::WebSettings* settings = view.GetSettings();
+ DALI_TEST_CHECK(settings != 0)
+
+ // Check the value is true or not
+ bool value = settings->SetTextZoomEnabled(true);
+ DALI_TEST_CHECK(value);
+
+ value = settings->IsTextZoomEnabled();
+ DALI_TEST_CHECK(value);
+
+ END_TEST;
+}
+
+int UtcDaliWebSettingsSetExtraFeature(void)
+{
+ ToolkitTestApplication application;
+
+ WebView view = WebView::New();
+ DALI_TEST_CHECK(view);
+
+ Dali::Toolkit::WebSettings* settings = view.GetSettings();
+ DALI_TEST_CHECK(settings != 0)
+
+ // Check the value is true or not
+ settings->SetExtraFeature("test", true);
+ bool value = settings->IsExtraFeatureEnabled("test");
+ DALI_TEST_CHECK(value);
+
+ END_TEST;
+}
+
+int UtcDaliWebViewGetPlainText(void)
+{
+ ToolkitTestApplication application;
+
+ WebView view = WebView::New();
+ DALI_TEST_CHECK(view);
+
+ view.LoadUrl(TEST_URL1);
+
+ view.GetPlainTextAsynchronously(&OnPlainTextReceived);
+ Test::EmitGlobalTimerSignal();
+ DALI_TEST_EQUALS(gPlainTextReceivedCallbackCalled, 1, TEST_LOCATION);
+
+ END_TEST;
+}
+
+int UtcDaliWebViewVisibilityChange(void)
+{
+ ToolkitTestApplication application;
+
+ WebView view = WebView::New();
+ Control dummy = Control::New();
+ DALI_TEST_CHECK(view);
+ DALI_TEST_CHECK(dummy);
+
+ view.LoadUrl(TEST_URL1);
+
+ dummy.Add(view);
+ auto window = application.GetWindow();
+ window.Add(dummy);
+
+ application.SendNotification();
+ application.Render();
+
+ try
+ {
+ // TODO : There is no way to check visiblity setting result from web engine.
+ // Just call API and exception check.
+ view.SetProperty(Actor::Property::VISIBLE, false);
+ view.SetProperty(Actor::Property::VISIBLE, true);
+ dummy.SetProperty(Actor::Property::VISIBLE, false);
+ dummy.SetProperty(Actor::Property::VISIBLE, true);
+ dummy.Unparent();
+ window.Hide();
+ window.Add(dummy);
+ window.Show();
+ window.Hide();
+ window.Show();
+ dummy.SetProperty(Actor::Property::VISIBLE, false);
+ view.SetProperty(Actor::Property::VISIBLE, false);
+ dummy.SetProperty(Actor::Property::VISIBLE, true);
+ view.SetProperty(Actor::Property::VISIBLE, true);
+ tet_result(TET_PASS);
+ }
+ catch(...)
+ {
+ // Should not throw exception
+ tet_result(TET_FAIL);
+ }
+
+ END_TEST;
+}
\ No newline at end of file