• last updated 16 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
"Replace 'decimal' parameter with 'standard' in 'util::content_size_pretty', wich now supports three different standards (SI base-10, IEC base-2 and the old JEDEC base-2), change default to SI base-10 and modify automated tests accordingly". +info: https://en.wikipedia.org/wiki/Binary_prefix

Remove extra brace

Trailing whitespace cleanup

Add automated test for 'ad_decode' and 'util::interval_pretty' procs. Many thanks to Hanifa Hasan

Add automated test for the 'apm_version_names_compare' proc. Many thanks to Hanifa Hasan

Add automated test for the 'ad_color_to_hex' proc. Many thanks to Hanifa Hasan

file widget-test-procs.tcl was initially added on branch oacs-5-10.

    • -0
    • +0
    /openacs-4/packages/acs-tcl/tcl/test/widget-test-procs.tcl
Add automated test for the 'string_truncate_middle'. Many thanks to Hanifa Hasan

file throttle_mod-test-procs.tcl was initially added on branch oacs-5-10.

- provide a better fix for name disambiguation between folders and same named (language prefixed) pages

- extend regression test

    • -15
    • +60
    /openacs-4/packages/xowiki/tcl/package-procs.tcl
    • -7
    • +7
    /openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
reduce verbosity

don't use non-existing method name in test specification.

This fixes a bug on openacs.org in source search of API browser.

TODO: the procs specified in the test definition (aa_register_case)

should be checked for existence.

add test case to show nameclash-behavior between folder and item

fix regression test when system locale is en_US

fix regression test cases. Works correct now with system locale en_US

    • -35
    • +28
    /openacs-4/packages/xowiki/www/admin/test.tcl
Prettify data size using 'util::content_size_pretty'

Trailing whitespace cleanup

Prettify data size using 'util::content_size_pretty'

let test run without runtime errors

    • -10
    • +12
    /openacs-4/packages/xowiki/www/admin/test.tcl
Whitespace changes

Prettify data size using 'util::content_size_pretty'

  1. … 19 more files in changeset.
Improve content_type detection on forum attachments, and avoid redirecting to external hosts on URLs

Url attachments in forums: use URL icon and avoid showing the size

Fix es_* message key

Preserve old logic on total size increment

Show attachment size in forum messages

Whitespace changes

Use 'util::content_size_pretty' instead of manually prettifying data sizes

Use 'util::content_size_pretty' instead of manually prettifying data sizes

Add new proc 'util::content_size_pretty', to prettify data size given in bytes, and its automated tests.

It supports both binary and decimal representations, a resolution up to YB/YiB, and setting the precision via parameter.

It should replace ad-hoc size prettyfication done manually in several places of the codebase.