!39476 NDK C-API fix XTS

Merge pull request !39476 from firminly/liyi4
This commit is contained in:
openharmony_ci 2024-08-02 08:26:05 +00:00 committed by Gitee
commit 5d670586d4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 1 additions and 2 deletions

View File

@ -6919,7 +6919,7 @@ int32_t SetSwiperDisplayCount(ArkUI_NodeHandle node, const ArkUI_AttributeItem*
if (item->size == 0) {
return ERROR_CODE_PARAM_INVALID;
}
if (LessNotEqual(item->value[0].i32, NUM_0)) {
if (LessNotEqual(item->value[0].f32, 0.0f)) {
return ERROR_CODE_PARAM_INVALID;
}
auto* fullImpl = GetFullImpl();

View File

@ -4586,7 +4586,6 @@ HWTEST_F(NativeNodeTest, NativeNodeTest060, TestSize.Level1)
EXPECT_EQ(nodeAPI->setAttribute(rootNode, NODE_SWIPER_INDEX, &item0), ARKUI_ERROR_CODE_PARAM_INVALID);
EXPECT_EQ(nodeAPI->setAttribute(rootNode, NODE_SWIPER_INDEX, &itemEnum), ARKUI_ERROR_CODE_PARAM_INVALID);
EXPECT_EQ(nodeAPI->setAttribute(rootNode, NODE_SWIPER_DISPLAY_COUNT, &item0), ARKUI_ERROR_CODE_PARAM_INVALID);
EXPECT_EQ(nodeAPI->setAttribute(rootNode, NODE_SWIPER_DISPLAY_COUNT, &itemEnum), ARKUI_ERROR_CODE_PARAM_INVALID);
EXPECT_EQ(nodeAPI->setAttribute(rootNode, NODE_SWIPER_DISABLE_SWIPE, &item0), ARKUI_ERROR_CODE_PARAM_INVALID);
EXPECT_EQ(nodeAPI->setAttribute(rootNode, NODE_SWIPER_DISABLE_SWIPE, &itemEnum), ARKUI_ERROR_CODE_PARAM_INVALID);
EXPECT_EQ(nodeAPI->setAttribute(rootNode, NODE_SWIPER_SHOW_DISPLAY_ARROW, &item0), ARKUI_ERROR_CODE_PARAM_INVALID);