1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00
ladybird/Tests/LibWeb/CMakeLists.txt
Shannon Booth 74334ea1ce LibWeb: Only use code unit length for is_code_unit_prefix
Fixes a crash in the included test.
2025-05-12 11:20:32 +02:00

35 lines
1,002 B
CMake

set(TEST_SOURCES
TestCSSIDSpeed.cpp
TestCSSPixels.cpp
TestCSSTokenStream.cpp
TestCSSInheritedProperty.cpp
TestFetchInfrastructure.cpp
TestFetchURL.cpp
TestHTMLTokenizer.cpp
TestMicrosyntax.cpp
TestMimeSniff.cpp
TestNumbers.cpp
TestStrings.cpp
)
foreach(source IN LISTS TEST_SOURCES)
serenity_test("${source}" LibWeb LIBS LibWeb)
endforeach()
target_link_libraries(TestFetchURL PRIVATE LibURL)
if (ENABLE_SWIFT)
find_package(SwiftTesting REQUIRED)
add_executable(TestLibWebSwift
TestLibWebSwiftBindings.swift
TestHTMLTokenizerSwift.swift
)
# FIXME: Swift doesn't seem to like object libraries for @main
target_sources(TestLibWebSwift PRIVATE ../Resources/SwiftTestMain.swift)
set_target_properties(TestLibWebSwift PROPERTIES SUFFIX .swift-testing)
target_link_libraries(TestLibWebSwift PRIVATE AK LibWeb LibGC SwiftTesting::SwiftTesting)
add_test(NAME TestLibWebSwift COMMAND TestLibWebSwift)
endif()