Pietro Gagliardi
|
eb1250a32b
|
Fixed the build and implemented some of the missing functions I just added. Not too happy with how these tests are structured so far; I might hack on that before continuing...
|
2022-07-30 12:13:36 -04:00 |
Pietro Gagliardi
|
0dd4bec2af
|
Added uiDarwinControlHandle(), and added it to uiWindow, and added uiWindow handle tests (including underlying string tests) to the test suite. Oof. Also I just remembered we're missing tests of these new functions in noinitwrongthread.c.
|
2020-05-25 22:13:48 -04:00 |
Pietro Gagliardi
|
8db1d5474b
|
Included testhooks.h from uipriv.h and test.h, to make things easier to write (we won't have to keep remembering to include it in every file) and to clean up (ditto, but for removal).
|
2020-05-22 16:32:04 -04:00 |
Pietro Gagliardi
|
7aeb937b93
|
Added methods to uiControl to catch and handle parent changing from the perspective of the individual controls. This will be used to implement the transition from not being backed by an OS handle to being backed by one and back on Windows, and should be all we need to start re-adding controls after uiWindow.
|
2020-05-13 12:43:40 -04:00 |
Pietro Gagliardi
|
19a776e446
|
And integrated the cycle-checking code. Woo it's got tests! Now we need to worry about the OS-side test code, assuming I don't have any more pesky TODOs to fix immediately...
|
2020-05-11 21:02:04 -04:00 |
Pietro Gagliardi
|
b1d733e9a2
|
Reworked programmer error tests to limit what they catch. The cycle checking tests now correctly crash and burn because the programmer errors they throw are elsewhere. Now to actually hook up the cycle checking! Also added some notes to test/errors.c to explain what we're doing and also fixed the build.
|
2020-05-11 20:55:34 -04:00 |
Pietro Gagliardi
|
fdf9a1245d
|
Wrote the code to check for parent cycles. I'm not going to actually hook it up yet; I want to resolve the one TODO about limiting the scope of the checkProgrammerError() calls first.
|
2020-05-11 19:48:02 -04:00 |
Pietro Gagliardi
|
e71c717b31
|
Made the test for an invalid control type slightly more robust by not using either 0 or 5 for the fake object (but rather some other value that isn't the constant and that's also conveniently ASCII) and deduplicating the redundant tests.
|
2020-05-10 22:00:49 -04:00 |
Pietro Gagliardi
|
c52656f2c2
|
Explicitly specified 0 as the invalid control type and stopped using 5 as an invalid control type.
|
2020-05-10 21:54:37 -04:00 |
Pietro Gagliardi
|
69bf71aaa1
|
Decided to hold off on events for now. I'm still not sure about this design and it's holding me back.
|
2020-05-08 00:16:14 -04:00 |
Pietro Gagliardi
|
edee2b930c
|
Re-added uiControlSetParent() to allow finishing testing uiControlFree() errors. That will come next, alongside its own errors.
|
2019-06-16 19:52:09 -04:00 |
Pietro Gagliardi
|
fda6c4a743
|
And strengthened the uiControlType() test a bit.
|
2019-06-16 17:32:47 -04:00 |
Pietro Gagliardi
|
c28adcbd01
|
Added test hook for checking a malformed uiControl whose type field is invalid.
|
2019-06-16 17:26:03 -04:00 |
Pietro Gagliardi
|
29ce809772
|
And FINALLY fixed the NULL name error in uiRegisterControlType().
|
2019-06-15 21:38:21 -04:00 |
Pietro Gagliardi
|
b6a8d24c3e
|
And fixed const issues and other build errors.
|
2019-06-15 20:48:20 -04:00 |
Pietro Gagliardi
|
87a2195027
|
Renamed the uiControl programmer errors to more clearly indicate they are uiControl programmer errors, and reworded their messages to put the function name first.
|
2019-06-09 13:32:31 -04:00 |
Pietro Gagliardi
|
0f41bb2188
|
Made all programmer error functions take the function name as an argument.
|
2019-06-09 13:18:18 -04:00 |
Pietro Gagliardi
|
e808d85e01
|
Added function names to the wrong struct size error.
|
2019-06-09 08:50:12 -04:00 |
Pietro Gagliardi
|
379fc230e5
|
More compile fixes. sharedbits is starting to get really messy.
|
2019-06-08 18:39:59 -04:00 |
Pietro Gagliardi
|
22cc5ad834
|
More error fixing.
|
2019-06-08 18:22:16 -04:00 |
Pietro Gagliardi
|
7aa1b0870d
|
And finished filling in controls.c. This is gonna be fun to debug...
|
2019-06-08 15:31:40 -04:00 |
Pietro Gagliardi
|
1189877ca5
|
Started writing the uiControl implementation.
|
2019-06-08 13:00:30 -04:00 |