aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2025-08-30Fix button with display:none directlyRodrigo Arias Mallo
2025-08-30Add html test for form elements with display:noneRodrigo Arias Mallo
2025-08-30Also match indirect leaksRodrigo Arias Mallo
2025-08-25Save stderr in a log per test fileRodrigo Arias Mallo
2025-08-25Detect leaks in test suite with AsanRodrigo Arias Mallo
Leaks from libfontconfig.so are excluded for now, as it doesn't seem to be our fault. The gcc mechanism to suppress leaks doesn't seem to be working, so we fallback to awk. In the presence of leaks, that specific test will fail by returning non-zero, but this will not be what we want for those tests that are currently failing with XPASS. We will only consider the ones that are passing as those targeted for leak detection.
2025-08-24Free toString() in containers unit testRodrigo Arias Mallo
2025-07-07Fix text-alignCameron Paul
Inline elements are now aligned based on the text-align value of their containing element instead of their own text-align value. Block level elements are no longer affected by the text-align property. Fixes: https://github.com/dillo-browser/dillo/issues/410
2025-07-07Expand text-align-center test with more test casesCameron Paul
2025-06-29Fix compare output in HTML test driverRodrigo Arias Mallo
Newer versions output two numbers instead of just one, so we pick the first number: ++ compare -metric AE b-div.html_wdir/{html.png,ref.png,diff.png} + diffcount='0 (0)' + '[' '0 (0)' = 0 ']' + echo FAIL FAIL
2025-06-29Set test wait time to 1 second but allow overrideRodrigo Arias Mallo
Use the environment variable DILLO_TEST_WAIT_TIME to lower the default time to wait since dillo window appears and when we take the screenshot to compare the rendering output.
2025-06-29Add extra sleep after window appears in HTML testsCameron Paul
2025-06-29Poll for dillo window during HTML testsCameron Paul
2025-06-16Add HTML test for text-align: centerCameron Paul
See: https://github.com/dillo-browser/dillo/issues/410
2025-06-16Add multiple floats HTML testCameron Paul
See: https://github.com/dillo-browser/dillo/issues/406
2025-06-16Add margin rounding HTML testCameron Paul
See: https://github.com/dillo-browser/dillo/issues/407
2025-05-01Allow whitespaces before separatorRodrigo Arias Mallo
2025-05-01Flatten the conditionals so it is easier to readRodrigo Arias Mallo
2025-05-01Move a_Misc_parse_content_disposition() to misc.hRodrigo Arias Mallo
For now it allows building the unit test without linking problems. A more long-term solution is to split the code into separate modules that can be tested more easily.
2025-05-01Re-enable failing tests and fix themCameron Paul
2025-05-01Fix disposition test linking and add more test casesCameron Paul
2025-05-01Add content disposition unit testRodrigo Arias Mallo
2025-02-28Fix text under scrollbar on the leftRodrigo Arias Mallo
When the page is first layouted, we can then determine if the vertical scrollbar needs to be present. When the vertical scrollbar is on the left side, the whole content needs to be shifted to the right, so we need to allocate the top level widget again. The current fix simply marks the top level widget for allocation. Fixes: https://github.com/dillo-browser/dillo/issues/359
2025-02-05Fix several typosGevel Tekens
See: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/thread/L3FFAINJJMIOZQNID5HC2DHKJIIIHEYH/
2024-11-13Use magick instead of convert if availableMatt Jolly
This suppresses a warning on more modern systems while preserving the ability of older systems and CI/CD to run the test suite. > WARNING: The convert command is deprecated in IMv7, \ > use "magick" instead of "convert" or "magick convert" Signed-off-by: Matt Jolly <kangie@gentoo.org>
2024-10-17Add more image aspect ratio testsRodrigo Arias Mallo
2024-10-17Add img-aspect-ratio-relative-inside-fixed testRodrigo Arias Mallo
2024-10-17Fix img-aspect-ratio-absolute testRodrigo Arias Mallo
2024-10-17Add more image aspect ratio testsRodrigo Arias Mallo
2024-10-17Preserve aspect ratio of imagesRodrigo Arias Mallo
When posible, change the image size so the aspect ratio is always preserved. This is only posible when one or both dimensions have some room to play. When both dimensions are not fixed, a naive algorithm tries to satisfy all {min,max}-{width,height} and aspect ratio constraints, but it may fail. In that case, the aspect ratio is not preserved. Fixes the HTML tests img-aspect-ratio and img-max-bounds.
2024-10-17Add img-max-bounds HTML testRodrigo Arias Mallo
Tests several combinations of size contraints on images so we can check if the aspect ratio is kept or not.
2024-10-01Add unclosed tag test for tbody, thead and tfootRodrigo Arias Mallo
2024-08-07Stop the layouting loop after 1000 iterationsRodrigo Arias
Prevents Dillo from hoarding the CPU due to an infinite loop in the layouting. We also return the control to FLTK to update the screen and process events each 100 iterations, to keep the window responsive. It doesn't fix the root cause of the github-infinite-loop test, but it does allow the rendering to finish with no differences with the reference test.
2024-08-07Add GitHub infinite loop HTML render testRodrigo Arias Mallo
2024-08-07Use dStrdup instead of strdupRodrigo Arias Mallo
The strdup function is not available in POSIX-2001, so we use our own implementation in dlib: dStrdup. Reviewed-by: dogma
2024-08-07Avoid INADDR_LOOPBACK as it is an extensionRodrigo Arias Mallo
Instead use inet_addr("127.0.0.1") which is POSIX 2001 and also more clear. Reviewed-by: dogma
2024-08-07Use portable dUsleep() instead of usleep()Rodrigo Arias Mallo
Reviewed-by: dogma
2024-08-07Build tests with -pedanticRodrigo Arias Mallo
Reviewed-by: dogma
2024-07-27Add SVG currentColor testRodrigo Arias Mallo
2024-06-25Ignore meta refresh content without URLRodrigo Arias Mallo
The content="0" attribute was wrongly parsed as the URL "0". The change makes the parser ignore a redirect with a content value that doesn't have ";" or "url=" after the delay number. Fixes: https://github.com/dillo-browser/dillo/issues/204
2024-06-11Ignore empty page title for tab labelsRodrigo Arias Mallo
When a page has an empty title like <title></title>, don't use it to set the tab label, but instead rely on the default tab label, which is computed from the file name.
2024-06-01Ensure the compare command can fail safelyRodrigo Arias Mallo
As we run the driver with "set -e", it will stop on the first failure. The compare(1) command from magick exits with non-zero when the inputs are not equal: > The compare program returns 2 on error, 0 if the images are similar, > or a value between 0 and 1 if they are not similar. So, to prevent it from interrupting the cleanup steps after the comparison, we make it always success.
2024-06-01Remove test directories for distcleanRodrigo Arias Mallo
In order to leave a clean build directory by distclean, all generated files must be removed. The environment variable DILLO_TEST_LEAVE_FILES can be set to leave the generated test results, which aids debugging when tests fail.
2024-06-01Add HTML tests to EXTRA_DISTMatt Jolly
This will enable tests to be easily run by downstream distributions from the tarball release.
2024-04-28Allow relative width td attributes in tablesRodrigo Arias Mallo
Partially reverts commit f5a0b6030c2001e5a0fcacf8139afa800643eb47. Fixes the rendering test table-missing-width-in-one-column. Fixes: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/message/H7JEBC2HYNJ6FUPQM7ILBP7I5FLU33IZ/
2024-04-28Add HTML test for missing width in one columnRodrigo Arias Mallo
It is currently failing, as the unbounded column is taking all the space. Reported-by: Kevin Koster <dillo@ombertech.com> Link: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/message/H7JEBC2HYNJ6FUPQM7ILBP7I5FLU33IZ/ Link: https://www.mail-archive.com/dillo-dev@mailman3.com/msg00020.html
2024-03-31Add support for the main HTML tagRodrigo Arias Mallo
Fixes: https://github.com/dillo-browser/dillo/issues/109
2024-03-23HTML test hackernews.html is now fixedRodrigo Arias Mallo
2024-03-17Clamp width to min/max in getAvailWidthOfChild()Rodrigo Arias Mallo
When the width is set to auto, a different branch is used to compute the width via getAvailWidth(true). The returned witdh needs to be clamped to be in the min/max-width CSS range if given, as otherwise it won't be corrected. Fixes: https://github.com/dillo-browser/dillo/issues/89
2024-03-17Add min-width-div-extend HTML render testRodrigo Arias Mallo
2024-03-17Add clamped max-width testRodrigo Arias Mallo
The max-width size of the widget is larger than the viewport, so it should be clamped by it.