https://bugs.webkit.org/show_bug.cgi?id=83263
Patch by Hugo Parente Lima <hugo.lima@openbossa.org> on 2012-05-17
Reviewed by Kenneth Rohde Christiansen.
Tools:
Handle "preview" state and avoid string conversion.
* WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
(WTR::LayoutTestController::setPageVisibility):
LayoutTests:
Unskip two page-visibility tests: iframe-propagation-test.html
and transition-test.html.
* platform/qt-5.0-wk2/Skipped:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117435
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-05-17 Hugo Parente Lima <hugo.lima@openbossa.org>
+
+ [Qt][WK2] fast/events/page-visibility-* tests fail
+ https://bugs.webkit.org/show_bug.cgi?id=83263
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ Unskip two page-visibility tests: iframe-propagation-test.html
+ and transition-test.html.
+
+ * platform/qt-5.0-wk2/Skipped:
+
2012-05-17 Csaba Osztrogonác <ossy@webkit.org>
[Qt] Unreviewed gardening, unksip one more now passing test.
# Still failing after implementing layoutTestController.setPageVisibility()
# https://bugs.webkit.org/show_bug.cgi?id=83263
fast/events/page-visibility-iframe-move-test.html
-fast/events/page-visibility-iframe-propagation-test.html
-fast/events/page-visibility-transition-test.html
svg/custom/mouse-move-on-svg-container.xhtml
svg/custom/mouse-move-on-svg-root-standalone.svg
+2012-05-17 Hugo Parente Lima <hugo.lima@openbossa.org>
+
+ [Qt][WK2] fast/events/page-visibility-* tests fail
+ https://bugs.webkit.org/show_bug.cgi?id=83263
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ Handle "preview" state and avoid string conversion.
+
+ * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
+ (WTR::LayoutTestController::setPageVisibility):
+
2012-05-17 Gyuyoung Kim <gyuyoung.kim@samsung.com>
Convert setDomainRelaxationForbiddenForURLScheme to use InternalSettings interface
void LayoutTestController::setPageVisibility(JSStringRef state)
{
- WKStringRef visibilityStateKey = toWK(state).get();
WebCore::PageVisibilityState visibilityState = WebCore::PageVisibilityStateVisible;
- if (WKStringIsEqualToUTF8CString(visibilityStateKey, "hidden"))
+ if (JSStringIsEqualToUTF8CString(state, "hidden"))
visibilityState = WebCore::PageVisibilityStateHidden;
- else if (WKStringIsEqualToUTF8CString(visibilityStateKey, "prerender"))
+ else if (JSStringIsEqualToUTF8CString(state, "prerender"))
visibilityState = WebCore::PageVisibilityStatePrerender;
+ else if (JSStringIsEqualToUTF8CString(state, "preview"))
+ visibilityState = WebCore::PageVisibilityStatePreview;
WKBundleSetPageVisibilityState(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), visibilityState, /* isInitialState */ false);
}