Changeset 236755 in webkit
- Timestamp:
- Oct 2, 2018 11:39:08 AM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r236751 r236755 1 2018-10-02 Dawei Fenton <realdawei@apple.com> 2 3 Unreviewed, rolling out r236751. 4 5 broke the iOS Build 6 7 Reverted changeset: 8 9 "Fix iOS TestWebKitAPI failures following 10 <https://trac.webkit.org/changeset/236619>" 11 https://bugs.webkit.org/show_bug.cgi?id=190017 12 https://trac.webkit.org/changeset/236751 13 1 14 2018-10-02 Daniel Bates <dabates@apple.com> 2 15 -
trunk/Tools/TestWebKitAPI/Tests/ios/DragAndDropTestsIOS.mm
r236751 r236755 28 28 #if ENABLE(DRAG_SUPPORT) && PLATFORM(IOS) && WK_API_ENABLED 29 29 30 #import "ClassMethodSwizzler.h"31 30 #import "DragAndDropSimulator.h" 32 31 #import "PlatformUtilities.h" … … 909 908 } 910 909 911 static BOOL overrideIsInHardwareKeyboardMode()912 {913 return NO;914 }915 916 910 TEST(DragAndDropTests, ExternalSourceUTF8PlainTextOnly) 917 911 { 918 ClassMethodSwizzler swizzler([UIKeyboard class], @selector(isInHardwareKeyboardMode), reinterpret_cast<IMP>(overrideIsInHardwareKeyboardMode));919 920 912 auto webView = adoptNS([[TestWKWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 500)]); 921 913 [webView synchronouslyLoadTestPageNamed:@"autofocus-contenteditable"]; … … 937 929 TEST(DragAndDropTests, ExternalSourceJPEGOnly) 938 930 { 939 ClassMethodSwizzler swizzler([UIKeyboard class], @selector(isInHardwareKeyboardMode), reinterpret_cast<IMP>(overrideIsInHardwareKeyboardMode));940 941 931 auto webView = adoptNS([[TestWKWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 500)]); 942 932 [webView synchronouslyLoadTestPageNamed:@"autofocus-contenteditable"]; -
trunk/Tools/TestWebKitAPI/Tests/ios/WKWebViewAutofillTests.mm
r236751 r236755 28 28 #if WK_API_ENABLED && PLATFORM(IOS) 29 29 30 #import "ClassMethodSwizzler.h"31 30 #import "PlatformUtilities.h" 32 31 #import "TestInputDelegate.h" … … 166 165 } 167 166 168 static BOOL overrideIsInHardwareKeyboardMode()169 {170 return NO;171 }172 173 167 TEST(WKWebViewAutofillTests, AutofillRequiresInputSession) 174 168 { 175 ClassMethodSwizzler swizzler([UIKeyboard class], @selector(isInHardwareKeyboardMode), reinterpret_cast<IMP>(overrideIsInHardwareKeyboardMode));176 177 169 auto webView = adoptNS([[AutofillTestView alloc] initWithFrame:CGRectMake(0, 0, 320, 500)]); 178 170 [(TestInputDelegate *)[webView _inputDelegate] setFocusStartsInputSessionPolicyHandler:[] (WKWebView *, id <_WKFocusedElementInfo>) -> _WKFocusStartsInputSessionPolicy { -
trunk/Tools/TestWebKitAPI/ios/UIKitSPI.h
r236751 r236755 31 31 32 32 #import <UIKit/UIApplication_Private.h> 33 #import <UIKit/UIKeyboard_Private.h>34 33 #import <UIKit/UIResponder_Private.h> 35 34 #import <UIKit/UITextInputMultiDocument.h> … … 162 161 @end 163 162 164 @interface UIKeyboard ()165 + (BOOL)isInHardwareKeyboardMode;166 @end167 168 163 #endif // PLATFORM(IOS)
Note: See TracChangeset
for help on using the changeset viewer.