Commit Graph

13 Commits

Author SHA1 Message Date
stasoid
0e2dd95528 remove cssTest.cpp and mediaQueryTest.cpp, they are covered by render tests now 2024-05-04 23:31:55 +03:00
stasoid
3226d74add Add standard-compliant css parser 2024-04-09 10:12:46 +05:00
stasoid
6ff77337fd remove tests that don't test anything 2022-11-27 13:26:56 +06:00
stasoid
3798ad6cf4 fix cssTest.cpp 2022-11-16 14:54:57 +06:00
stasoid
d1179d5167 more wchar cleanup 2022-11-07 23:21:32 +06:00
stasoid
8c7621034f parse_styles optimization: use string_id for CSS property names
decreases parse_styles time by 37% (750 ms -> 468 ms on Obama wiki on my machine)
2022-11-07 22:11:00 +06:00
stasoid
8927a44515 Remove litehtml::context, replace master.css -> master_css.h and make document::createFromString receive master/user css as strings
closes issue #219
2022-10-30 16:25:56 +06:00
stasoid
a6177d1d5e remove wchar support
closes issue #217
2022-10-21 17:51:29 +06:00
stasoid
9c2c6fffa2 fix test 2022-03-19 09:30:22 +06:00
John Poole
8bbf9afed6 Disable test that only fails on GitHub Actions
CSSTest.SelectorParse fails on GitHub Actions but not on Travis or on
any developer systems.  Disable the test until we can determine what's
going on here.
2021-09-25 19:51:12 -04:00
John Poole
7501793675 Convert litehtml tests to use GoogleTest
GoogleTest provides a number of nice features (such as autodiscovery)
that make writing and running tests easier and less tedious.  This
patch converts the litehtml tests over to use GoogleTest.  Note that
the conversion is mostly mechanical -- no attempt has been made to
make the tests "idiomatic" GoogleTests.

Most of the CMake changes are based on code from the GoogleTest
documentation, specifically the "Quickstart: Building with CMake"
guide:

  https://google.github.io/googletest/quickstart-cmake.html
2021-08-25 17:51:12 -04:00
Sky Morey
04d8b410c1 added tests, optimized text parsing for <script> 2019-08-18 15:58:26 -05:00
Sky Morey
cd15b54730 Added testing 2019-08-17 20:26:08 -05:00