Changeset 249704 in webkit
- Timestamp:
- Sep 9, 2019 9:30:39 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r249702 r249704 1 2019-09-09 Alex Christensen <achristensen@webkit.org> 2 3 Fix iOS API tests after r249684 4 https://bugs.webkit.org/show_bug.cgi?id=201573 5 6 * TestWebKitAPI/Tests/WebKitCocoa/TLSDeprecation.mm: 7 (TestWebKitAPI::getWebSocketEventWebKitLegacy): 8 (TestWebKitAPI::TEST): 9 The web thread still exists :( 10 That makes iOS immediate failure results more like WK2, which is fine. 11 The point is that the connection fails somehow and the server sees a TLS failure, which the test verifies. 12 1 13 2019-09-09 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/TLSDeprecation.mm
r249684 r249704 35 35 #import <wtf/RetainPtr.h> 36 36 37 #if PLATFORM(IOS_FAMILY) 38 #import <WebKit/WebUIKitSupport.h> 39 #import <WebKit/WebCoreThread.h> 40 #endif 41 37 42 @interface WebSocketDelegate : NSObject <WKUIDelegate, WebUIDelegate> 38 43 - (NSString *)waitForMessage; … … 107 112 NSString *getWebSocketEventWebKitLegacy(bool clientAllowDeprecatedTLS, bool serverLimitTLS) 108 113 { 114 #if PLATFORM(IOS_FAMILY) 115 WebKitInitialize(); 116 WebThreadLock(); 117 #endif 109 118 Optional<uint16_t> maxServerTLSVersion; 110 119 if (serverLimitTLS) … … 142 151 TEST(WebKit, TLSVersionWebSocketWebKitLegacy2) 143 152 { 144 EXPECT_WK_STREQ(getWebSocketEventWebKitLegacy(false, true), "close"); 153 #if PLATFORM(IOS_FAMILY) 154 const char* expected = "error: undefined"; 155 #else 156 const char* expected = "close"; 157 #endif 158 EXPECT_WK_STREQ(getWebSocketEventWebKitLegacy(false, true), expected); 145 159 } 146 160
Note: See TracChangeset
for help on using the changeset viewer.