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
|
22bcf088e9
|
And reintegrated the macOS tests. Now for the other platforms.
|
2020-05-11 22:19:07 -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
|
1cf4a3df21
|
Filled in the missing uiControl tests and demoted the non-uiControl requirements to TODOs as I'm not sure how sensible those requirements are. I'll probably bring them back shortly =P Now to implement cycle checking.
|
2020-05-11 10:32:17 -04:00 |
Pietro Gagliardi
|
dfd045b3cc
|
Resolved all the TODOs in test/controls.c I care to right now. I still need to write tests for the other failure conditions that aren't tested yet.
|
2020-05-11 00:52:22 -04:00 |
Pietro Gagliardi
|
9b1be0c77a
|
More TODO resolution.
|
2020-05-10 23:59:09 -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
|
3689d3c96a
|
More TODOs.
|
2020-05-10 21:45:33 -04:00 |
Pietro Gagliardi
|
b710ef6228
|
Fixed building these tests.
|
2020-05-10 21:39:44 -04:00 |
Pietro Gagliardi
|
436cb567dc
|
Integrated the contents of the old controls_errors.cpp directly into controls.c. We need to rework some test control stuff to get this to compile, and we'll also need to add more test cases for things in the docs that are not in this file.
|
2020-05-10 21:29:03 -04:00 |
Pietro Gagliardi
|
d584842628
|
Started reintegrating control tests.
|
2020-05-10 17:58:48 -04: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
|
4649e7d632
|
Oh wait, we leave that to the individual containers. Never mind! Let's write this on other platforms!!
|
2019-06-18 11:02:39 -04:00 |
Pietro Gagliardi
|
644afdedaf
|
Added uiControlOnFree() checking to test/control.c. Now we can add the tests for uiControlFree() calling Free on children, and then we can finally start implementing these on the other platforms :D
|
2019-06-18 10:59:56 -04:00 |
Pietro Gagliardi
|
a1b0979506
|
Rewrote test/controls.c to be about counting calls.
|
2019-06-18 10:48:10 -04:00 |
Pietro Gagliardi
|
dcae8888d2
|
More controls test work.
|
2019-06-17 20:03:57 -04:00 |
Pietro Gagliardi
|
a9145c2f35
|
Started writing the uiControl functionality tests. Also more TODOs. Let's fix build errors next.
|
2019-06-16 21:44:49 -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
|
b6a8d24c3e
|
And fixed const issues and other build errors.
|
2019-06-15 20:48:20 -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
|
ab82278a30
|
And got things building. Now to clean up the error macro part.
|
2019-06-13 10:43:44 -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
|
63773f703c
|
Fixed build errors. The test itself will fail at present, but we have some cleanups to do still...
|
2019-06-11 21:29:25 -04:00 |
Pietro Gagliardi
|
e30ed33046
|
Finished rewriting test/controls.c for the initial run. Now to fix errors.
|
2019-06-11 21:23:56 -04:00 |
Pietro Gagliardi
|
28a5cd543a
|
Started writing the uiControl error tests.
|
2019-06-11 12:01:35 -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
|
e808d85e01
|
Added function names to the wrong struct size error.
|
2019-06-09 08:50:12 -04:00 |
Pietro Gagliardi
|
c45ab57bce
|
Started writing control tests. This is going to be fun...
|
2019-06-08 21:38:32 -04:00 |