Title: [134079] trunk/Tools
Revision
134079
Author
commit-qu...@webkit.org
Date
2012-11-09 09:51:38 -0800 (Fri, 09 Nov 2012)

Log Message

[EFL] Give the view a size in TestWebKitAPI
https://bugs.webkit.org/show_bug.cgi?id=101770

Patch by Yael Aharon <yael.aha...@intel.com> on 2012-11-09
Reviewed by Laszlo Gombos.

2 tests are currently failing, because they expect us to paint, but we don't paint if the view size is empty.

* TestWebKitAPI/efl/PlatformWebView.cpp:
(TestWebKitAPI::PlatformWebView::PlatformWebView):
(TestWebKitAPI::PlatformWebView::~PlatformWebView):
(TestWebKitAPI):
(TestWebKitAPI::PlatformWebView::resizeTo):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (134078 => 134079)


--- trunk/Tools/ChangeLog	2012-11-09 17:22:38 UTC (rev 134078)
+++ trunk/Tools/ChangeLog	2012-11-09 17:51:38 UTC (rev 134079)
@@ -1,3 +1,18 @@
+2012-11-09  Yael Aharon  <yael.aha...@intel.com>
+
+        [EFL] Give the view a size in TestWebKitAPI
+        https://bugs.webkit.org/show_bug.cgi?id=101770
+
+        Reviewed by Laszlo Gombos.
+
+        2 tests are currently failing, because they expect us to paint, but we don't paint if the view size is empty.
+
+        * TestWebKitAPI/efl/PlatformWebView.cpp:
+        (TestWebKitAPI::PlatformWebView::PlatformWebView):
+        (TestWebKitAPI::PlatformWebView::~PlatformWebView):
+        (TestWebKitAPI):
+        (TestWebKitAPI::PlatformWebView::resizeTo):
+
 2012-11-09  Sheriff Bot  <webkit.review....@gmail.com>
 
         Unreviewed, rolling out r134068.

Modified: trunk/Tools/TestWebKitAPI/efl/PlatformWebView.cpp (134078 => 134079)


--- trunk/Tools/TestWebKitAPI/efl/PlatformWebView.cpp	2012-11-09 17:22:38 UTC (rev 134078)
+++ trunk/Tools/TestWebKitAPI/efl/PlatformWebView.cpp	2012-11-09 17:51:38 UTC (rev 134079)
@@ -60,6 +60,7 @@
     Evas* evas = ecore_evas_get(m_window);
     m_view = toImpl(WKViewCreate(evas, contextRef, pageGroupRef));
     ewk_view_theme_set(m_view, THEME_DIR"/default.edj");
+    resizeTo(600, 800);
 }
 
 PlatformWebView::~PlatformWebView()
@@ -69,6 +70,11 @@
     ecore_evas_shutdown();
 }
 
+void PlatformWebView::resizeTo(unsigned width, unsigned height)
+{
+    evas_object_resize(m_view, width, height);
+}
+
 WKPageRef PlatformWebView::page() const
 {
     return WKViewGetPage(toAPI(m_view));
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to