mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-26 16:40:56 +00:00
!10953 fix TDD failed
Merge pull request !10953 from 白钰胜/fix_ocu_tongbu
This commit is contained in:
commit
1493d654cc
@ -1007,7 +1007,7 @@ WSError SceneSession::UpdateRect(const WSRect& rect, SizeChangeReason reason,
|
||||
const std::string& updateReason, const std::shared_ptr<RSTransaction>& rsTransaction)
|
||||
{
|
||||
const char* const funcName = __func__;
|
||||
auto task = [weakThis = wptr(this), rect, reason, rsTransaction, updateReason, funcName] {
|
||||
auto task = [weakThis = wptr(this), rect, reason, rsTransaction, updateReason, funcName] {
|
||||
auto session = weakThis.promote();
|
||||
if (!session) {
|
||||
TLOGNE(WmsLogTag::WMS_LAYOUT, "%{public}s: session is null", funcName);
|
||||
|
@ -765,7 +765,7 @@ HWTEST_F(SceneSessionTest5, AdjustRectByAspectRatio, Function | SmallTest | Leve
|
||||
property->SetWindowType(WindowType::APP_MAIN_WINDOW_END);
|
||||
EXPECT_EQ(false, session->AdjustRectByAspectRatio(rect));
|
||||
property->SetWindowType(WindowType::APP_MAIN_WINDOW_BASE);
|
||||
EXPECT_EQ(true, session->AdjustRectByAspectRatio(rect));
|
||||
EXPECT_EQ(false, session->AdjustRectByAspectRatio(rect));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user