Changeset 220466 in webkit
- Timestamp:
- Aug 9, 2017 11:03:11 AM (7 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r220459 r220466 1 2017-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 1 8 2017-08-09 Daniel Bates <dabates@apple.com> 2 9 -
trunk/Tools/TestWebKitAPI/Tests/WTF/Function.cpp
r218660 r220466 150 150 EXPECT_EQ(1U, a()); 151 151 152 a = nullptr;153 EXPECT_FALSE(static_cast<bool>(a));154 EXPECT_EQ(0U, a());155 156 152 a = MoveOnly { 2 }; 157 153 EXPECT_TRUE(static_cast<bool>(a)); … … 176 172 EXPECT_FALSE(static_cast<bool>(c)); 177 173 EXPECT_EQ(0U, c()); 178 179 Function<unsigned()> d = nullptr;180 EXPECT_FALSE(static_cast<bool>(d));181 EXPECT_EQ(0U, d());182 174 } 183 175 … … 223 215 224 216 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);234 217 a = MoveOnly { 2 }; 235 218 EXPECT_TRUE(static_cast<bool>(FunctionDestructionChecker::functionAsBool));
Note: See TracChangeset
for help on using the changeset viewer.