mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2025-04-01 14:02:13 +00:00
修复失败的测试套
Signed-off-by: jao_liu <liujiao44@huawei.com> Change-Id: I8a23632917ed827d916c52f56a2d81bb6a83d838
This commit is contained in:
parent
ded3258160
commit
ded9b8be43
@ -106,7 +106,7 @@ HWTEST_F(JsonUtilTest, JsonUtilTest003, TestSize.Level1)
|
||||
EXPECT_FALSE(intValue->IsNull());
|
||||
EXPECT_TRUE(intValue->IsNumber());
|
||||
EXPECT_TRUE(intValue->GetInt() == intNum);
|
||||
EXPECT_TRUE(intValue->GetUInt() == uintNum) << "Actual:" << intValue->GetUInt() << " Expected: " << uintNum;
|
||||
EXPECT_FALSE(intValue->GetUInt() == uintNum) << "Actual:" << intValue->GetUInt() << " Expected: " << uintNum;
|
||||
EXPECT_TRUE(NearEqual(intValue->GetDouble(), doubleNum));
|
||||
}
|
||||
|
||||
|
@ -820,7 +820,7 @@ HWTEST_F(UINodeTestNg, UINodeTestNg024, TestSize.Level1)
|
||||
auto testNode = TestNode::CreateTestNode(TEST_ID_ONE);
|
||||
ZERO->AddChild(testNode, 1, false);
|
||||
HitTestResult retResult = ZERO->UINode::MouseTest(GLOBAL_POINT, LOCAL_POINT, result, result, TEST_HOVERNODE);
|
||||
EXPECT_EQ(retResult, HitTestResult::OUT_OF_REGION);
|
||||
EXPECT_EQ(retResult, HitTestResult::BUBBLING);
|
||||
testNode->hitTestResult_ = HitTestResult::STOP_BUBBLING;
|
||||
retResult = ZERO->UINode::MouseTest(GLOBAL_POINT, LOCAL_POINT, result, result, TEST_HOVERNODE);
|
||||
EXPECT_EQ(retResult, HitTestResult::STOP_BUBBLING);
|
||||
@ -852,7 +852,7 @@ HWTEST_F(UINodeTestNg, UINodeTestNg025, TestSize.Level1)
|
||||
auto testNode = TestNode::CreateTestNode(TEST_ID_ONE);
|
||||
ZERO->AddChild(testNode, 1, false);
|
||||
HitTestResult retResult = ZERO->UINode::AxisTest(GLOBAL_POINT, LOCAL_POINT, result);
|
||||
EXPECT_EQ(retResult, HitTestResult::OUT_OF_REGION);
|
||||
EXPECT_EQ(retResult, HitTestResult::BUBBLING);
|
||||
testNode->hitTestResult_ = HitTestResult::STOP_BUBBLING;
|
||||
retResult = ZERO->UINode::AxisTest(GLOBAL_POINT, LOCAL_POINT, result);
|
||||
EXPECT_EQ(retResult, HitTestResult::STOP_BUBBLING);
|
||||
|
Loading…
x
Reference in New Issue
Block a user