mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +00:00
5a44a0b9f4
The test suite includes a few basic tests and a very crude regression test, which just concatenates the to_string() of all tokens and checks the String's hash to be equal. This relies on the format of HTMLToken::to_string() to stay the same, which is not ideal.
13 lines
352 B
CMake
13 lines
352 B
CMake
set(
|
|
TEST_SOURCES
|
|
${CMAKE_CURRENT_SOURCE_DIR}/TestHTMLTokenizer.cpp
|
|
)
|
|
|
|
foreach(source ${TEST_SOURCES})
|
|
serenity_test(${source} LibWeb LIBS LibWeb)
|
|
endforeach()
|
|
|
|
serenity_testjs_test(test-web.cpp test-web LIBS LibWeb)
|
|
install(TARGETS test-web RUNTIME DESTINATION bin OPTIONAL)
|
|
install(FILES tokenizer-test.html DESTINATION usr/Tests/LibWeb)
|