Changeset 220466 in webkit


Ignore:
Timestamp:
Aug 9, 2017 11:03:11 AM (7 years ago)
Author:
weinig@apple.com
Message:

Update for https://bugs.webkit.org/show_bug.cgi?id=175244.

  • TestWebKitAPI/Tests/WTF/Function.cpp:

Remove tests of null Functions, as they are no longer supported.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r220459 r220466  
     12017-08-09  Sam Weinig  <sam@webkit.org>
     2
     3        Update for https://bugs.webkit.org/show_bug.cgi?id=175244.
     4
     5        * TestWebKitAPI/Tests/WTF/Function.cpp:
     6        Remove tests of null Functions, as they are no longer supported.
     7
    182017-08-09  Daniel Bates  <dabates@apple.com>
    29
  • trunk/Tools/TestWebKitAPI/Tests/WTF/Function.cpp

    r218660 r220466  
    150150    EXPECT_EQ(1U, a());
    151151
    152     a = nullptr;
    153     EXPECT_FALSE(static_cast<bool>(a));
    154     EXPECT_EQ(0U, a());
    155 
    156152    a = MoveOnly { 2 };
    157153    EXPECT_TRUE(static_cast<bool>(a));
     
    176172    EXPECT_FALSE(static_cast<bool>(c));
    177173    EXPECT_EQ(0U, c());
    178 
    179     Function<unsigned()> d = nullptr;
    180     EXPECT_FALSE(static_cast<bool>(d));
    181     EXPECT_EQ(0U, d());
    182174}
    183175
     
    223215
    224216    a = FunctionDestructionChecker(a);
    225     a = nullptr;
    226     EXPECT_TRUE(static_cast<bool>(FunctionDestructionChecker::functionAsBool));
    227     EXPECT_TRUE(static_cast<bool>(FunctionDestructionChecker::functionResult));
    228     EXPECT_FALSE(FunctionDestructionChecker::functionAsBool.value());
    229     EXPECT_EQ(0U, FunctionDestructionChecker::functionResult.value());
    230     FunctionDestructionChecker::functionAsBool = std::nullopt;
    231     FunctionDestructionChecker::functionResult = std::nullopt;
    232 
    233     a = FunctionDestructionChecker(a);
    234217    a = MoveOnly { 2 };
    235218    EXPECT_TRUE(static_cast<bool>(FunctionDestructionChecker::functionAsBool));
Note: See TracChangeset for help on using the changeset viewer.