2021-09-02 05:44:24 +00:00
|
|
|
set(TEST_SOURCES
|
2023-01-09 21:31:20 +00:00
|
|
|
TestCSSIDSpeed.cpp
|
2023-07-23 00:19:57 +00:00
|
|
|
TestCSSPixels.cpp
|
2024-03-26 16:13:11 +00:00
|
|
|
TestFetchInfrastructure.cpp
|
2024-03-24 12:37:33 +00:00
|
|
|
TestFetchURL.cpp
|
2021-09-02 05:44:24 +00:00
|
|
|
TestHTMLTokenizer.cpp
|
2023-12-11 14:37:26 +00:00
|
|
|
TestMicrosyntax.cpp
|
2023-10-06 04:24:13 +00:00
|
|
|
TestMimeSniff.cpp
|
2023-07-23 16:38:04 +00:00
|
|
|
TestNumbers.cpp
|
2021-07-12 13:12:47 +00:00
|
|
|
)
|
|
|
|
|
2021-09-02 05:44:24 +00:00
|
|
|
foreach(source IN LISTS TEST_SOURCES)
|
|
|
|
serenity_test("${source}" LibWeb LIBS LibWeb)
|
2021-07-12 13:12:47 +00:00
|
|
|
endforeach()
|
|
|
|
|
2024-03-24 12:37:33 +00:00
|
|
|
target_link_libraries(TestFetchURL PRIVATE LibURL)
|
2024-08-18 02:58:59 +00:00
|
|
|
|
|
|
|
if (ENABLE_SWIFT)
|
2024-08-27 07:57:13 +00:00
|
|
|
find_package(SwiftTesting REQUIRED)
|
2024-08-18 02:16:16 +00:00
|
|
|
|
2024-08-27 07:57:13 +00:00
|
|
|
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 SwiftTesting::SwiftTesting)
|
|
|
|
add_test(NAME TestLibWebSwift COMMAND TestLibWebSwift)
|
2024-08-18 02:58:59 +00:00
|
|
|
endif()
|