From 951b91c3935965112520dbd45c07221c58f2b17a Mon Sep 17 00:00:00 2001 From: Phillip Davis Date: Wed, 8 Jul 2026 19:08:30 +0930 Subject: [PATCH] test: adjust WedDav preview test case for Devanagari script This acceptance test case use Devenagari script as an example of a non-Latin script. It confirms that a preview of a text file containing Devanagari script can be produced in PNG format. The preview used in the test scenario has been made bigger (64x64). That makes the graphic resolution good enough that I can manually recognise the characters rendered in the resulting PNG image, and confirm that they are a good rendering of the text. Note: depending on the installed environment, some Devanagari ligatures may not be rendered correctly. That also applies for other scripts. If an installation wants to accurately support rendering of a wide range of scripts, then they need to organise to have suitable additional libraries installed that will support those scripts. The purpose of this test scenario is not to ensure that all scripts work correctly. The purpose is just to ensure that some combination of non-Latin characters can be correctly processed, stored as a preview, and the binary content of the preview is correctly returned to the user that called the API. --- .../features/apiWebdavPreviews/previews.feature | 10 +++++----- ...4\252\340\244\276\340\244\250\340\245\200.png" | Bin 0 -> 728 bytes ...4\252\340\244\276\340\244\250\340\245\200.png" | Bin 407 -> 0 bytes 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 "tests/acceptance/fixtures/\340\244\256\340\245\207\340\244\260\340\245\213-\340\244\252\340\244\276\340\244\250\340\245\200.png" delete mode 100644 "tests/acceptance/fixtures/\340\244\270\340\244\277\340\244\256\340\244\270\340\244\277\340\244\256\340\245\207-\340\244\252\340\244\276\340\244\250\340\245\200.png" diff --git a/tests/acceptance/features/apiWebdavPreviews/previews.feature b/tests/acceptance/features/apiWebdavPreviews/previews.feature index c3d79d44342a..b65af423ffb5 100644 --- a/tests/acceptance/features/apiWebdavPreviews/previews.feature +++ b/tests/acceptance/features/apiWebdavPreviews/previews.feature @@ -207,14 +207,14 @@ Feature: previews of files downloaded through the webdav API Then the HTTP status code should be "204" And as user "Brian" the preview of "/Shares/parent.txt" with width "32" and height "32" should have been changed - @issue-41480 @skip + Scenario: it should update the preview content if the file content is updated (content with UTF chars) Given user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/lorem.txt" - And user "Alice" has uploaded file with content "सिमसिमे पानी" to "/lorem.txt" - When user "Alice" downloads the preview of "/lorem.txt" with width "32" and height "32" using the WebDAV API + And user "Alice" has uploaded file with content "मेरो पानी" to "/lorem.txt" + When user "Alice" downloads the preview of "/lorem.txt" with width "64" and height "64" using the WebDAV API Then the HTTP status code should be "200" - And the downloaded image should be "32" pixels wide and "32" pixels high - And the downloaded preview content should match with "सिमसिमे-पानी.png" fixtures preview content + And the downloaded image should be "64" pixels wide and "64" pixels high + And the downloaded preview content should match with "मेरो-पानी.png" fixtures preview content Scenario: updates to a file should change the preview for both sharees and sharers diff --git "a/tests/acceptance/fixtures/\340\244\256\340\245\207\340\244\260\340\245\213-\340\244\252\340\244\276\340\244\250\340\245\200.png" "b/tests/acceptance/fixtures/\340\244\256\340\245\207\340\244\260\340\245\213-\340\244\252\340\244\276\340\244\250\340\245\200.png" new file mode 100644 index 0000000000000000000000000000000000000000..308b39834d61a1e99b4efdc9aaeb367546803aa0 GIT binary patch literal 728 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=oCO|{#S9F5M?jcysy3fA0|Qf+ zr;B4q#hka(3_XehCED(rOt_#JP_V_ZAd`!|*k|F+iy3=gTnG>{3!BY5>p>YS`}S#K z;_S<{b(>goB~3CET@+S`2u^>0|Izp9P5-Wxzo`^SI({>6)zTgmpgEuJrZPJ*4`&i(s`O?;=Ee%cRI5x6#NqSw-W zwJ(nzW!-dBhv%@v{`>Riz15kp-+;&Y-%%6aOtaa-uj3PEEsL0@dj0zKARV#&rDgYY zmR!zUc{Qu!_~Q%{sfg(4=G$-G)?attfB*QWPe$|R&kxj^D!{{5SW?nbwYRUpg6H%m zflil#($dzeS3@gow)X92kM9k_8&jF_#cbl#J6vA1qCfFEG8U3 z?p|3{C3JezlQ(aC^z`+QFRQ4o);@mxxRTN&AGK5i2@kc&6Z5wJ{^+~?_EaA=~ z@7|rUH7dFKXN}y>7(R7%_08t7S(H>&aWM$j zcX+5UF;rAk%$WG@OQgWhKdKqG&F1($x2b)0ZaQNf^DmJ!?hO|iav05|8gvi1F>heK yk--3rMcxBq35ywTFy)vqL^t%ZB~V>aJwx=gvb(DU(gT1=mBG{1&t;ucLK6TvDl~Th literal 0 HcmV?d00001 diff --git "a/tests/acceptance/fixtures/\340\244\270\340\244\277\340\244\256\340\244\270\340\244\277\340\244\256\340\245\207-\340\244\252\340\244\276\340\244\250\340\245\200.png" "b/tests/acceptance/fixtures/\340\244\270\340\244\277\340\244\256\340\244\270\340\244\277\340\244\256\340\245\207-\340\244\252\340\244\276\340\244\250\340\245\200.png" deleted file mode 100644 index 10a2c3d752ff1a4f6c94c18a538a0aa067ce08a5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 407 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz&H|6fVg?4jBOuH;Rhv(mfq~J} z)5S3)qV?_NgQpw=1rB`tzq4;q-|mUd6O$@;b0;-lspaB-D5;VESauI1cTmj9un3JH zmrFmx_Vw;Nx^{ieIi2)nGw&z4NhI^c_e2P=G#l_#+Q?>P6vgK#ZxtAqM^UrU- z|2|T0x(HWmzv3~8w!?~1*;9fhGAz3OdS=z$b2(;dy978Es$YfD)RWFgr@4>I(wl5D?_w$wnrPy#SP)VMYZbr#<}_B$@>t uEq=KEPkrl;Z{imBWAYfq5>OGt2j