Pietro Gagliardi
|
0d9f58b5e1
|
Rewrote test/errors.c as previously planned. checkProgrammerErrors() is no longer self-contained, but rather a header and a footer function. We'll need to change the handling of test/noinitwrongthread.c in the Python appropriately, but this'll be fine. (Plus, we can localize the inThread logic into that file too!)
|
2020-02-23 18:04:23 -05:00 |
Pietro Gagliardi
|
cdc570082c
|
Added TestDefer(), which we need to bring back the events tests.
|
2020-02-16 21:54:17 -05:00 |
Pietro Gagliardi
|
3f3de363b5
|
And integrated the new test stuff. All right!
|
2020-02-16 18:42:02 -05:00 |
Pietro Gagliardi
|
18c7eae71e
|
Integrated the new testlist.py into the build.
|
2020-02-16 18:31:53 -05:00 |
Pietro Gagliardi
|
001e439a9b
|
Started properly reintegrating the core of noinitwrongthread.c (that is, errors.c).
|
2020-01-26 20:02:03 -05:00 |
Pietro Gagliardi
|
8b400f33f7
|
More initmain.c integration. I think we're now complete to what it used to be for that one file. Now I have to figure out how to readd subtests...
|
2020-01-23 21:44:45 -05:00 |
Pietro Gagliardi
|
042da74cc9
|
Started restructuring things slightly so as to allow the new test functions to be safely called from subroutines.
|
2020-01-23 10:52:41 -05:00 |
Pietro Gagliardi
|
d51a885431
|
Reintroduced the test type without uiInit() and added uiInit() to most normal tests. Now to start (slowly) reactivating tests.
|
2020-01-21 01:16:47 -05:00 |
Pietro Gagliardi
|
da1f9b4875
|
And fixed compiler errors. It works!
|
2020-01-20 20:58:19 -05:00 |
Pietro Gagliardi
|
f75875e51b
|
And finished reintegrating enough for one test case.
|
2020-01-20 20:52:46 -05:00 |
Pietro Gagliardi
|
4f2db68520
|
Reintegrated what I needed in test.h. So much for "overengineered".
|
2020-01-20 20:49:33 -05:00 |
Pietro Gagliardi
|
f4218af3f5
|
Filled in the rest of test(ing).h and main.c for the new test system.
|
2020-01-20 17:22:37 -05:00 |
Pietro Gagliardi
|
75db846736
|
Looks like we're going to need to turn the test suite into a subprocess-based suite now rather than later, because of Haiku not allowing BApplication::Run() to be called more than once.
|
2020-01-19 18:59:43 -05:00 |
Pietro Gagliardi
|
517791f04e
|
Started writing the macOS control errors file. We have a meson problem now... it's not respecting cpp_std for Objective-C++.
|
2019-06-16 20:35:36 -04:00 |
Pietro Gagliardi
|
f90150a579
|
More filling in of the uiControl errors tests.
|
2019-06-16 13:06:28 -04:00 |
Pietro Gagliardi
|
3e96dafe44
|
Created the test uiControl type. Now we can start writing the rest of the uiControl tests.
|
2019-06-16 05:45:16 -04:00 |
Pietro Gagliardi
|
0550e4bc00
|
Turned testVtable into a function that returned the pointer to use, made the OSVtable equivalent likewise, and renamed darwin/control.m to darwin/controls.m.
|
2019-06-15 21:33:53 -04:00 |
Pietro Gagliardi
|
ad209175c1
|
Migrated controls_errors.h. Now I need to add consts to uiRegisterControlType() and friends.
|
2019-06-15 20:38:18 -04:00 |
Pietro Gagliardi
|
8c7f1987da
|
And fixed build errors. It works! Now to translate everything else back.
|
2019-06-15 20:06:12 -04:00 |
Pietro Gagliardi
|
f966b6ee16
|
Adapted everything to life with C++ and to the new error checking model.
|
2019-06-15 19:53:50 -04:00 |
Pietro Gagliardi
|
f517742a3c
|
Started rewriting events_errors.c to use a new errors.h that will do all the hard work. We'll need to do slightly more work for this particular case because of the firing stuff, though.
|
2019-06-13 21:20:39 -04:00 |
Pietro Gagliardi
|
d54f23c0cc
|
Deduplicated the common defer functions.
|
2019-06-13 10:39:40 -04:00 |
Pietro Gagliardi
|
f3b0dc16ab
|
Slight refactoring of the controls test. One more thing to do for now.
|
2019-06-13 10:31:17 -04:00 |
Pietro Gagliardi
|
6903bebe7d
|
Started writing the controls Darwin-specific code and all-platforms tests for real.
|
2019-06-10 23:09:48 -04:00 |
Pietro Gagliardi
|
70ff47cb06
|
Wrote a new file to store the uiEvent error test cases.
|
2019-06-10 10:41:33 -04:00 |
Pietro Gagliardi
|
afbf5f2d59
|
And actually did split the new error testing code into its own file. Next is changing both events.c and controls.c to use it (and yes, that means we can finally start continuing work on controls.c).
|
2019-06-09 22:45:44 -04:00 |
Pietro Gagliardi
|
a0fd823328
|
Just restored TestEventErrors as is for now. There's definitely room for cleanup here.
|
2019-06-09 18:08:50 -04:00 |
Pietro Gagliardi
|
3f4765d116
|
Renamed diffx() to diff().
|
2019-06-02 01:59:08 -04:00 |
Pietro Gagliardi
|
0c673acf70
|
Got rid of all the diff() macros; the replacement, currently called diffx(), just produces the requisite format string. Next up is renaming diffx() to diff() and making sure things work.
|
2019-06-02 01:51:40 -04:00 |
Pietro Gagliardi
|
5d1e6a0cf2
|
Began handling all the other cases. diff() and diff_2str() go away next.
|
2019-06-02 01:36:53 -04:00 |
Pietro Gagliardi
|
48cd6e1dd8
|
Cleaned #include directives so C standard library headers are sorted and so each source file only includes one header file. This makes things clenaer, and alos allows us to more properly strip unneeded headers later.
|
2019-06-01 09:27:17 -04:00 |
Pietro Gagliardi
|
c090dacc4a
|
Switched the test code to use bool wherever appropriate. Will try to do this for the rest of libui, and then I'll deduplicate the allocation and array code.
|
2019-05-30 22:09:45 -04:00 |
Pietro Gagliardi
|
a632d10701
|
Indented diff bodies (and all other multi-line test log prints) properly.
|
2019-05-29 00:35:51 -04:00 |
Pietro Gagliardi
|
7cb4f010d4
|
Cleaned up programmer error testing code.
|
2019-05-26 20:19:02 -04:00 |
Pietro Gagliardi
|
7808b3ee94
|
Added the hook for checking programmer error responses, and made sure it works. Now to simplify it.
|
2019-05-26 15:41:22 -04:00 |
Pietro Gagliardi
|
9060ef3852
|
More TODOs.
|
2019-05-26 15:08:51 -04:00 |
Pietro Gagliardi
|
3b1f5e0e54
|
Added more event tests. DeleteHandler obviously does not work... and I really need to add subtests.
|
2019-05-18 21:21:55 -04:00 |
Pietro Gagliardi
|
07dc3ee025
|
Finished the test set implementation, moving the tester itself to use it. This also moves uiInit() into main(); in TestInit, we'll hook into uiInit() to avoid actually doing the initialization.
|
2019-05-10 21:16:29 -04:00 |
Pietro Gagliardi
|
98093ed46e
|
Formatted test results across multiple lines in the same way as in Go. Also prettyprinted diffs in initmain.c.
|
2019-05-04 21:13:47 -04:00 |
Pietro Gagliardi
|
00411a4d07
|
Moved all the test infrasturcture files into a subdirectory of test/ called lib/.
|
2019-05-04 16:53:54 -04:00 |
Pietro Gagliardi
|
020cabc61e
|
Fixed build issues. Now to fix runtime issues: we'll have to use reentrancy everywhere, because rcx is clobbered by GetMessage().
|
2019-05-03 10:32:31 -04:00 |
Pietro Gagliardi
|
dbfea28313
|
And finished adjusting the tests accordingly. Now to test.
|
2019-05-03 02:02:20 -04:00 |
Pietro Gagliardi
|
313f5864f5
|
Fixed the timer functions on Windows.
|
2019-05-02 22:03:57 -04:00 |
Pietro Gagliardi
|
e03021a350
|
Piped the actual file/line through to testingRunWithTimeout().
|
2019-04-28 13:26:15 -04:00 |
Pietro Gagliardi
|
1bc2297597
|
Added a facility to do timeouts in test functions. Also started cleaning up the weird TimerNsec abstractions.
|
2019-04-28 13:12:40 -04:00 |
Pietro Gagliardi
|
992d8694a9
|
Let's start the remodel. Move almost everything out of the way.
|
2019-04-08 20:36:21 -04:00 |
Pietro Gagliardi
|
095e63d522
|
Fixed memory leaks in the tester and a symbol name flub in OS X's image.m.
|
2018-07-08 21:20:42 -04:00 |
Pietro Gagliardi
|
18b103c988
|
Fully reintegrated the table code.
|
2016-11-27 17:44:52 -05:00 |
Pietro Gagliardi
|
e3dec183aa
|
Started the process of splitting the table code into a separate branch.
|
2016-11-27 17:34:40 -05:00 |
Pietro Gagliardi
|
93bbf39aa4
|
Added some test images. Now to add image columns to uiTable and see what happens.
|
2016-06-25 17:26:50 -04:00 |