mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 05:35:52 +03:00
35c0a6c54d
As many macros as possible are moved to Macros.h, while the macros to create a test case are moved to TestCase.h. TestCase is now the only user-facing header for creating a test case. TestSuite and its helpers have moved into a .cpp file. Instead of requiring a TEST_MAIN macro to be instantiated into the test file, a TestMain.cpp file is provided instead that will be linked against each test. This has the side effect that, if we wanted to have test cases split across multiple files, it's as simple as adding them all to the same executable. The test main should be portable to kernel mode as well, so if there's a set of tests that should be run in self-test mode in kernel space, we can accomodate that. A new serenity_test CMake function streamlines adding a new test with arguments for the test source file, subdirectory under /usr/Tests to install the test application and an optional list of libraries to link against the test application. To accomodate future test where the provided TestMain.cpp is not suitable (e.g. test-js), a CUSTOM_MAIN parameter can be passed to the function to not link against the boilerplate main function. |
||
---|---|---|
.. | ||
CellType | ||
Readers | ||
Writers | ||
Cell.cpp | ||
Cell.h | ||
CellSyntaxHighlighter.cpp | ||
CellSyntaxHighlighter.h | ||
CellTypeDialog.cpp | ||
CellTypeDialog.h | ||
CMakeLists.txt | ||
CondFormatting.gml | ||
ConditionalFormatting.h | ||
CondView.gml | ||
csv_export.gml | ||
csv_import.gml | ||
ExportDialog.cpp | ||
ExportDialog.h | ||
Forward.h | ||
HelpWindow.cpp | ||
HelpWindow.h | ||
ImportDialog.cpp | ||
ImportDialog.h | ||
JSIntegration.cpp | ||
JSIntegration.h | ||
main.cpp | ||
Position.h | ||
select_format_page.gml | ||
Spreadsheet.cpp | ||
Spreadsheet.h | ||
SpreadsheetModel.cpp | ||
SpreadsheetModel.h | ||
SpreadsheetView.cpp | ||
SpreadsheetView.h | ||
SpreadsheetWidget.cpp | ||
SpreadsheetWidget.h | ||
Workbook.cpp | ||
Workbook.h |