From: chen Date: Tue, 7 Jan 2025 12:29:20 +0000 (+0800) Subject: [tv][content] fix DF250102-00918, timing issue for deleted file onadd cb in scanfile X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F70%2F317770%2F2;p=test%2Ftct%2Fweb%2Fapi.git [tv][content] fix DF250102-00918, timing issue for deleted file onadd cb in scanfile Change-Id: I959ec1b25721e9e0ac5d646d61c1cd9fdec64962 Signed-off-by: chen --- diff --git a/common/tct-content-tizen-tests/content/support/content_common.js b/common/tct-content-tizen-tests/content/support/content_common.js index c29930d36..e3ee721a5 100755 --- a/common/tct-content-tizen-tests/content/support/content_common.js +++ b/common/tct-content-tizen-tests/content/support/content_common.js @@ -127,7 +127,13 @@ function prepare_file_for_scan(addedImagePath, onCopySuccess) { }); var onDeleteError = t.step_func(function () { - copyContentFile(); + tizen.content.scanFile("file://" + addedImagePath, function (){ + copyContentFile(); + }, + function (error){ + console.log("Failed to scan file : " + error.message) + copyContentFile(); + }); }); tizen.filesystem.resolve(