diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2023-12-30 21:00:22 +0100 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2023-12-30 22:04:56 +0100 |
commit | 95627efadf55c39901928ee730d22de55cdcc209 (patch) | |
tree | cdbba90f9eed51ad189d0ddab90ec02d2c985cc1 /test/html/render/table-thead-tfoot.ref.html | |
parent | 1711ba895376fef9eb9b5face92118b674db8015 (diff) |
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.
Diffstat (limited to 'test/html/render/table-thead-tfoot.ref.html')
-rw-r--r-- | test/html/render/table-thead-tfoot.ref.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/html/render/table-thead-tfoot.ref.html b/test/html/render/table-thead-tfoot.ref.html new file mode 100644 index 00000000..031ade7f --- /dev/null +++ b/test/html/render/table-thead-tfoot.ref.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test thead, tbody and tfoot</title> + <style> + .head {color: green; font-weight: bold; align: center; } + .body {color: blue;} + .foot {color: red;} + + table, th, td { + border: 1px solid black; + } + </style> + </head> + <body> + <table> + <tr class="head"> + <th>Month</th> + <th>Savings</th> + </tr> + <tr class="body"> + <td>January</td> + <td>$100</td> + </tr> + <tr class="body"> + <td>February</td> + <td>$80</td> + </tr> + <tr class="foot"> + <td>Sum</td> + <td>$180</td> + </tr> + </table> + </body> +</html> |