Pietro Gagliardi
|
e01c732760
|
More documentation notes.
|
2020-05-12 17:00:40 -04:00 |
Pietro Gagliardi
|
150fa7eaa6
|
Renamed testparent to testrunner. (Whatever this became wasn't going to be testparent anyway; that was me thinking ahead to XCTest for macOS testing, which we're almost to the point of...)
|
2020-05-12 02:05:30 -04:00 |
Pietro Gagliardi
|
de35499976
|
And removed zNEW_test now that everything's integrated back in.
|
2020-05-12 01:47:14 -04:00 |
Pietro Gagliardi
|
1cf87d5c5e
|
And Haiku.
|
2020-05-12 01:46:36 -04:00 |
Pietro Gagliardi
|
de5205d594
|
And with Unix.
|
2020-05-11 22:37:17 -04:00 |
Pietro Gagliardi
|
e73c3363ec
|
Reintegrated the Windows control tests. We may be close to getting rid of zNEW_test!
|
2020-05-11 22:30:30 -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
|
76eef19a2b
|
Clarified something in test/errors.c.
|
2020-05-11 21:03:31 -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
|
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
|
e7917500c1
|
Clarified doc/controls.md a bit, and introduced more requirements. Now to re-introduce its tests.
|
2020-05-10 16:24:43 -04:00 |
Pietro Gagliardi
|
5d17ee6e70
|
Finished reintegrating test/noinitwrongthread.c. That was easy!
|
2020-05-10 14:57:03 -04:00 |
Pietro Gagliardi
|
21a0550076
|
Reintegrated test/noinitwrongthread.c into the fold. Now to test.
|
2020-05-10 14:49:11 -04:00 |
Pietro Gagliardi
|
f79a0892f2
|
More TODOs.
|
2020-05-10 13:09:00 -04:00 |
Pietro Gagliardi
|
1daac120af
|
Switched haiku status_t printing to use a constant; also gave the constant a self-descriptive name for readability.
|
2020-05-10 12:55:47 -04:00 |
Pietro Gagliardi
|
ecb5558d3d
|
And changed the other OSs to define uiprivSysMain/Quit().
|
2020-05-10 12:29:58 -04:00 |
Pietro Gagliardi
|
32512c7a5e
|
More TODOs in re previous commit. Okay let's keep going.
|
2020-05-10 12:15:21 -04:00 |
Pietro Gagliardi
|
dca16e82b0
|
Kicking this can down the road because I need to move on (though I may add more TODOs about it)
|
2020-05-10 11:58:17 -04:00 |
Pietro Gagliardi
|
3a31401190
|
Okay, started writing the interleaving tests. I'm starting to feel like this thread-based model of testing isn't the right approach...
|
2020-05-10 11:50:05 -04:00 |
Pietro Gagliardi
|
4163facc11
|
Settled most of the remaining non-timer TODOs in test/initmain.c. Just one more (duplicated on two different tests) to go!
|
2020-05-09 23:10:58 -04:00 |
Pietro Gagliardi
|
87e042a309
|
Wrote in the remaining programmer error tests in test/initmain.c.
|
2020-05-09 22:34:42 -04:00 |
Pietro Gagliardi
|
c9339e568c
|
Finished converting the rest of the existing tests. Now we just need to flesh out the remaining tests for this file, as well as adding the error tests for uiMain() and uiQuit().
|
2020-05-09 22:14:31 -04:00 |
Pietro Gagliardi
|
7a83baefe8
|
Started reworking all the uiQueueMain() tests to be more robust.
|
2020-05-09 21:54:26 -04:00 |
Pietro Gagliardi
|
bbae57ea29
|
Refined the init tests slightly, started a new model for the QueueMain tests, and allowed tests to run for now.
|
2020-05-09 20:04:14 -04:00 |
Pietro Gagliardi
|
73afdaaeb2
|
Improved the main QueueMain test.
|
2020-05-09 16:54:18 -04:00 |
Pietro Gagliardi
|
c39bd66d38
|
Cleaned up the init tests.
|
2020-05-09 16:35:01 -04:00 |
Pietro Gagliardi
|
a2f0d5c2cd
|
Implemented the rest of the uiInit() tests. A bit repetitive, but it works.
|
2020-05-09 02:38:07 -04:00 |
Pietro Gagliardi
|
9fcc4d500c
|
Adapted test/errors.c to test for the lack of a programmer error.
|
2020-05-09 02:33:18 -04:00 |
Pietro Gagliardi
|
41e62cdce1
|
Added basic testing for init failing. Now to add support for testing for the lack of a programmer error.
|
2020-05-09 02:04:51 -04:00 |
Pietro Gagliardi
|
761d3a434a
|
Started to fix init/main tests.
|
2020-05-09 01:45:09 -04:00 |
Pietro Gagliardi
|
514037ba6c
|
Modified common and the macOS port to exhibit the new init/main behavior. Now to adjust the tests.
|
2020-05-09 01:24:40 -04:00 |
Pietro Gagliardi
|
faaccd0413
|
Made uiInit() programmer errors actual programmer errors and not normal error returns. This makes the error handling, the documentation, and even the tests much easier, and also makes programmer error handling more consistent. Also defined programmer error cases for uiMain() and uiQuit(). We'll implement all of these next.
|
2020-05-09 01:01:40 -04:00 |
Pietro Gagliardi
|
c0e73c67f4
|
Okay, I won't even bother with the overview until I figure out how events will work in the final API, because I legitimately cannot decide how to write this.
|
2020-05-09 00:35:38 -04:00 |
Pietro Gagliardi
|
dea7b52605
|
Revert "Made thread names consistent."
I don't know if I want to do this yet.
This reverts commit 456fb594c0 .
|
2020-05-09 00:34:51 -04:00 |
Pietro Gagliardi
|
456fb594c0
|
Made thread names consistent.
|
2020-05-09 00:18:06 -04:00 |
Pietro Gagliardi
|
7c4d1ae478
|
More TODOs in doc/init-main.md. I'll decide these later. I want to rewrite this to not use the term 'event' to avoid confusion with libui's own event system, since these are talking about all the events that can happen, not just the ones libui allows you to handle...
|
2020-05-08 00:39: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
|
74651b347c
|
More notes.
|
2020-05-05 10:46:56 -04:00 |
Pietro Gagliardi
|
63bda503dc
|
More notes.
|
2020-04-09 20:39:18 -04:00 |
Pietro Gagliardi
|
e0828a51f1
|
More notes.
|
2020-04-07 22:33:41 -04:00 |