Changeset 249704 in webkit


Ignore:
Timestamp:
Sep 9, 2019 9:30:39 PM (5 years ago)
Author:
achristensen@apple.com
Message:

Fix iOS API tests after r249684
https://bugs.webkit.org/show_bug.cgi?id=201573

  • TestWebKitAPI/Tests/WebKitCocoa/TLSDeprecation.mm:

(TestWebKitAPI::getWebSocketEventWebKitLegacy):
(TestWebKitAPI::TEST):
The web thread still exists :(
That makes iOS immediate failure results more like WK2, which is fine.
The point is that the connection fails somehow and the server sees a TLS failure, which the test verifies.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r249702 r249704  
     12019-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
    1132019-09-09  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/TLSDeprecation.mm

    r249684 r249704  
    3535#import <wtf/RetainPtr.h>
    3636
     37#if PLATFORM(IOS_FAMILY)
     38#import <WebKit/WebUIKitSupport.h>
     39#import <WebKit/WebCoreThread.h>
     40#endif
     41
    3742@interface WebSocketDelegate : NSObject <WKUIDelegate, WebUIDelegate>
    3843- (NSString *)waitForMessage;
     
    107112NSString *getWebSocketEventWebKitLegacy(bool clientAllowDeprecatedTLS, bool serverLimitTLS)
    108113{
     114#if PLATFORM(IOS_FAMILY)
     115    WebKitInitialize();
     116    WebThreadLock();
     117#endif
    109118    Optional<uint16_t> maxServerTLSVersion;
    110119    if (serverLimitTLS)
     
    142151TEST(WebKit, TLSVersionWebSocketWebKitLegacy2)
    143152{
    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);
    145159}
    146160
Note: See TracChangeset for help on using the changeset viewer.