summaryrefslogtreecommitdiff
path: root/test/html
AgeCommit message (Collapse)Author
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-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.
2024-03-17Add table-max-width render testRodrigo Arias Mallo
2024-03-17Add Hacker News table testRodrigo Arias Mallo
2024-03-17Add div-100-percent-with-padding testRodrigo Arias Mallo
2024-03-02Ignore percent width td attributes in tablesRodrigo Arias Mallo
The width attribute in tr and td tags is deprecated in HTML 4.01 and obsolete in HTML 5. However, we should still support it when loading the page in the transitional mode. Currently, the relative values of the width attribute are transformed into CSS values. They cause the available text width to be computed by applying the relative value to the cell width, which causes an unintended effect. The workaround for now is to simply ignore the value when it is specified as a percent.
2024-03-02Add another td width render test with an imageRodrigo Arias Mallo
2024-03-02Add table-td-width-percent testRodrigo Arias Mallo
2024-02-04Add span padding HTML render testRodrigo Arias Mallo
2024-02-01Add margin auto HTML render testRodrigo Arias Mallo
2024-01-09Update references to website and repositoryRodrigo Arias Mallo
The website is now at https://dillo-browser.github.io/ and the repository at https://github.com/dillo-browser/dillo.
2024-01-08Add min/max width html tests to XFAILRodrigo Arias Mallo
For now they are ignored, so the body will extend to the viewport.
2024-01-08Add min-width and max-width CSS testsRodrigo Arias Mallo
2023-12-30Add automatic rendering testsRodrigo Arias Mallo
These tests render a HTML page in Dillo and save a screenshot which is compared with another one rendered by a reference HTML file which doesn't make use of the feature under test. Running these tests require some additional dependencies to run a Xorg server and capture screenshots of the browser, so they are only enabled when configured with the --enable-html-tests option. Additionally, running Dillo and opening local files requires a working file dpi plugin. So, when running the HTML tests it is required that a working dpid server can be launched by Dillo. To do so, Dillo can be first installed to a prefix directory, the dpidrc file copied to ~/.dillo/ and then the DILLOBIN variable set to the path of the dillo binary under test.
2023-12-21Split tests into unit and dw (graphical)Rodrigo Arias Mallo
Graphical tests for the dw (Dillo Widget) are moved to test/dw, while unit tests are placed into test/unit. All tests are compiled with "make check" but only the tests that can run without intervention and without a graphic display are executed.