From 95627efadf55c39901928ee730d22de55cdcc209 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sat, 30 Dec 2023 21:00:22 +0100 Subject: Add automatic rendering tests 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. --- test/html/Makefile.am | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/html/Makefile.am (limited to 'test/html/Makefile.am') diff --git a/test/html/Makefile.am b/test/html/Makefile.am new file mode 100644 index 00000000..467d812e --- /dev/null +++ b/test/html/Makefile.am @@ -0,0 +1,18 @@ +AM_TESTS_ENVIRONMENT = env \ + TOP_BUILDDIR='$(top_builddir)' \ + TOP_SRCDIR='$(top_srcdir)' \ + BUILDDIR='$(builddir)' + +LOG_COMPILER = $(srcdir)/driver.sh + +TESTS = \ + render/float-img-justify.html \ + render/img-aspect-ratio.html \ + render/table-thead-tfoot.html \ + render/white-space.html \ + render/b-div.html + +# To be fixed +XFAIL_TESTS = \ + render/float-img-justify.html \ + render/img-aspect-ratio.html -- cgit v1.2.3