Title: [162123] trunk/Tools
- Revision
- 162123
- Author
- [email protected]
- Date
- 2014-01-16 06:14:04 -0800 (Thu, 16 Jan 2014)
Log Message
[EFL][WK2] Implement TestController::setHidden
https://bugs.webkit.org/show_bug.cgi?id=127036
Reviewed by Gyuyoung Kim.
WebKitTestRunner needs TestController::setHidden implementation to
properly handle page visibility API layout tests after r161105.
* WebKitTestRunner/efl/TestControllerEfl.cpp:
(WTR::TestController::setHidden):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (162122 => 162123)
--- trunk/Tools/ChangeLog 2014-01-16 11:12:36 UTC (rev 162122)
+++ trunk/Tools/ChangeLog 2014-01-16 14:14:04 UTC (rev 162123)
@@ -1,3 +1,16 @@
+2014-01-16 Michał Pakuła vel Rutka <[email protected]>
+
+ [EFL][WK2] Implement TestController::setHidden
+ https://bugs.webkit.org/show_bug.cgi?id=127036
+
+ Reviewed by Gyuyoung Kim.
+
+ WebKitTestRunner needs TestController::setHidden implementation to
+ properly handle page visibility API layout tests after r161105.
+
+ * WebKitTestRunner/efl/TestControllerEfl.cpp:
+ (WTR::TestController::setHidden):
+
2014-01-16 Zan Dobersek <[email protected]>
[GTK][MiniBrowser] The progress entry reset callback can be fired after the BrowserWindow is destroyed
Modified: trunk/Tools/WebKitTestRunner/efl/TestControllerEfl.cpp (162122 => 162123)
--- trunk/Tools/WebKitTestRunner/efl/TestControllerEfl.cpp 2014-01-16 11:12:36 UTC (rev 162122)
+++ trunk/Tools/WebKitTestRunner/efl/TestControllerEfl.cpp 2014-01-16 14:14:04 UTC (rev 162123)
@@ -20,7 +20,9 @@
#include "config.h"
#include "TestController.h"
+#include "PlatformWebView.h"
#include <Ecore.h>
+#include <Evas.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -101,9 +103,19 @@
{
}
-void TestController::setHidden(bool)
+void TestController::setHidden(bool hidden)
{
- // FIXME: Need to implement this to test visibilityState.
+ PlatformWKView view = mainWebView()->platformView();
+
+ if (!view) {
+ fprintf(stderr, "ERROR: view is null.\n");
+ return;
+ }
+
+ if (hidden)
+ evas_object_hide(view);
+ else
+ evas_object_show(view);
}
void TestController::runModal(PlatformWebView*)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes