[Webkit-unassigned] [Bug 164764] Hard to write reliable UIScriptController scrollingTreeAsText tests
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 14 21:15:39 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=164764
Simon Fraser (smfr) <simon.fraser at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simon.fraser at apple.com
--- Comment #1 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
Maybe need this:
diff --git a/Tools/WebKitTestRunner/ios/TestControllerIOS.mm b/Tools/WebKitTestRunner/ios/TestControllerIOS.mm
index 03454a5b5d4847e015a142a19b31920141373bb4..452c410c8379b70c6512dad2c0fd0146311afbda 100644
--- a/Tools/WebKitTestRunner/ios/TestControllerIOS.mm
+++ b/Tools/WebKitTestRunner/ios/TestControllerIOS.mm
@@ -28,6 +28,7 @@
#import "PlatformWebView.h"
#import "TestInvocation.h"
+#import "TestRunnerWKWebView.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <WebKit/WKPreferencesRefPrivate.h>
@@ -83,6 +84,12 @@ void TestController::platformResetPreferencesToConsistentValues()
void TestController::platformResetStateToConsistentValues()
{
cocoaResetStateToConsistentValues();
+
+ if (PlatformWebView* webView = mainWebView()) {
+ UIScrollView *scrollView = webView->platformView().scrollView;
+ [scrollView setZoomScale:1 animated:NO];
+ [scrollView setContentOffset:CGPointZero];
+ }
}
void TestController::platformConfigureViewForTest(const TestInvocation& test)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161115/a8a22361/attachment.html>
More information about the webkit-unassigned
mailing list