diff --git a/components/form.php b/components/form.php index a615041..5381164 100644 --- a/components/form.php +++ b/components/form.php @@ -20,17 +20,12 @@ $redirectUrlUtm = $redirect_url_utm ?? '';
:
-
png
-
jpeg
-
jpg
-
webp
-
heic
-
gif
-
tiff
-
bmp
-
avif
-
jxl
-
dng
+
JPG
+
PNG
+
HEIC
+
WebP
+
GIF
+
+много
diff --git a/tests/check-visible-format-list.php b/tests/check-visible-format-list.php new file mode 100644 index 0000000..47b8b57 --- /dev/null +++ b/tests/check-visible-format-list.php @@ -0,0 +1,21 @@ +([^<]+)<\\/div>/', $form, $formatMatches); +$visibleFormats = ['JPG', 'PNG', 'HEIC', 'WebP', 'GIF', '+много']; +if ($formatMatches[1] !== $visibleFormats) { + fwrite(STDERR, "FAIL: Preland не показывает утверждённый компактный список форматов в нужном порядке.\n"); + exit(1); +} + +echo "OK: Preland показывает утверждённый компактный список форматов\n";