!37361 modify TDD for change InsertValue with previewText

Merge pull request !37361 from 末日拿铁/for_modify_TDD
This commit is contained in:
openharmony_ci 2024-07-10 02:19:26 +00:00 committed by Gitee
commit 218eca7bc7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1429,8 +1429,8 @@ HWTEST_F(TextInputCursorTest, FinishTextPreview003, TestSize.Level1)
*/
SourceAndValueInfo info;
info.insertValue = HELLO_TEXT;
pattern_->InsertValueOperation(info);
EXPECT_TRUE(pattern_->inputOperations_.front() == InputOperation::SET_PREVIEW_FINISH);
pattern_->InsertValue(info.insertValue, info.isIME);
EXPECT_TRUE(pattern_->inputOperations_.front() == InputOperation::SET_PREVIEW_TEXT);
FlushLayoutTask(frameNode_);
}