Pietro Gagliardi
5fb4e4403e
And implemented testingRunWithTimeout() on Windows. All tests currently pass on all platforms! Woo!
2019-04-28 19:04:27 -04:00
Pietro Gagliardi
8ffb2b1b1e
Fixed build warnings and errors. Now we just need to implement testingRunWithTimeout() on Windows.
2019-04-28 16:35:25 -04:00
Pietro Gagliardi
49bde22f81
More TODOs.
2019-04-28 14:54:33 -04:00
Pietro Gagliardi
bdf80516c5
Reimplemented uiMain() and friends on GTK+.
2019-04-28 14:52:39 -04:00
Pietro Gagliardi
b20bf2d1c9
Wrote TestQueueMain_Sequence.
2019-04-28 14:41:30 -04:00
Pietro Gagliardi
e03021a350
Piped the actual file/line through to testingRunWithTimeout().
2019-04-28 13:26:15 -04:00
Pietro Gagliardi
64478bd5b0
Finished cleaning up the TimerNsec naming wonk.
2019-04-28 13:19:04 -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
9c70782a0f
Added uiMain() and friends on macOS and refined the tests. So now we'll need to add a timeout mechanism because that sendEvent: stuff really is still neeeded and I'd like to prevent shenanigans later.
2019-04-28 11:48:21 -04:00
Pietro Gagliardi
aa49da98ba
And implemented testingTimer on Windows.
2019-04-23 22:49:28 -04:00
Pietro Gagliardi
7e631879e7
Wrote the Unix clock function. It's primitive, but it works.
2019-04-23 12:26:52 -04:00
Pietro Gagliardi
4bd1ba2fa5
Oops; flipped a boolean.
2019-04-22 23:03:12 -04:00
Pietro Gagliardi
bd1ca240e3
Added timers to the testing framework, test timing (so no more of those pesky TODOs), and the OS X implementation of test timing.
2019-04-22 23:01:55 -04:00
Pietro Gagliardi
23591eeefa
Executive decision: drop uiUnint(). This was really more for double-checking *my* work, mostly with regards to memory management, and we could probably do that in the test suite instead, or even with AddressSanitizer.
2019-04-21 20:59:36 -04:00
Pietro Gagliardi
80ca6e2fc1
More notes.
2019-04-21 18:00:38 -04:00
Pietro Gagliardi
63952a3e20
ANd integrated the test manifest back into the tester.
2019-04-21 17:59:29 -04:00
Pietro Gagliardi
b8b3b3df39
Fixed the rest of the build errors and warnings. Woo! Now for the manifests.
2019-04-21 17:28:47 -04:00
Pietro Gagliardi
f7867f3427
ALMOST fixed the build on Windows with MSVC. (For the change to test/testing.h: Even in VS2019 inline isn't available in C, ugh. That function doesn't need to be inline anyway, so eh.)
2019-04-21 15:08:09 -04:00
Pietro Gagliardi
484989e925
Implemented uiInit() on macOS. The tests work so far!
2019-04-20 21:38:26 -04:00
Pietro Gagliardi
5e45afd0a2
More TODOs.
2019-04-19 12:13:08 -04:00
Pietro Gagliardi
6f3d45b107
Made it so that normal and after tests don't run if before tests failed.
2019-04-19 12:12:13 -04:00
Pietro Gagliardi
da36b304f8
Wrote the uiInit() test.
2019-04-19 12:10:45 -04:00
Pietro Gagliardi
e5e60284fb
More desirable sorting of tests: by line number per file, specifically. Also per-file, but that can remain unguaranteed if I ever spin this out into its own library.
2019-04-17 22:58:44 -04:00
Pietro Gagliardi
16c6425200
Reorganized test sets into growing arrays. We can sort them next.
2019-04-17 22:12:32 -04:00
Pietro Gagliardi
dcf34e6dab
Set up the necessary work for having the list of tests sort by filename/line number instead of init order.
2019-04-17 21:49:47 -04:00
Pietro Gagliardi
59b449b920
Added rudimentary test ordering, for the Init and Uninit tests.
2019-04-10 20:17:40 -04:00
Pietro Gagliardi
1b046e763b
Fixed the test suite.
2019-04-10 20:11:44 -04:00
Pietro Gagliardi
4f381d04a1
Added some test cases and the build script.
2019-04-10 14:42:17 -04:00
Pietro Gagliardi
759d6d1e46
Allowed deferred functions to access the testingT. If they call FailNow, we act as if nothing happens and the defers keep running.
2019-04-10 14:27:21 -04:00
Pietro Gagliardi
0149639edc
Cleaned things up a bit for libui's test suite.
2019-04-10 14:19:17 -04:00
Pietro Gagliardi
b26e0677af
Okay, I'm not satisfied with the other testing frameworks, so strip testing.h down to just what libui needs.
2019-04-10 13:23:25 -04:00
Pietro Gagliardi
ced0820e39
Undo that; this is probably overkill for libui's unit tests...
2019-04-10 12:55:37 -04:00
Pietro Gagliardi
5a0477d46d
Moved the testing files back here since we're actually going to start writing proper unit tests now.
2019-04-10 12:18:08 -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
f7907f38c6
Decided to just deal with the name tester instead of test for now. It's not that important to block merging.
2019-03-31 11:09:16 -04:00
Pietro Gagliardi
ff3d39213e
Decided to just build everything by default and not have separate all or examples targets since we don't really have much control over what's a top-level target anyway (and ninja on its own == ninja all). Also set layout to flat by default, since it keeps everything together, which will lead to less surprising behavior on Windows and is more useful for our release packages.
2019-03-31 11:04:20 -04:00
Pietro Gagliardi
81e25f76f2
Moved the binary PIC as a TODO and marked merge blockers as MESONTODO. Also removed a stale cmake-era TODO, because the manifest distribution idea it had will eventually be part of the uires tool.
2019-03-27 21:34:09 -04:00
Pietro Gagliardi
99f2b8f5ad
And settled test/CMakeLists.txt; nothing there that needed to be moved.
2019-03-27 01:07:03 -04:00
Pietro Gagliardi
1b9250e41e
Removed include_directories hackery, as suggested by various people in freenode #mesonbuild.
2019-03-25 20:07:22 -04:00
Pietro Gagliardi
467a9102ec
Fixed static builds on all platforms. So close to getting all this set up!
2019-03-24 14:11:02 -04:00
Pietro Gagliardi
2be9a4f3a3
Added the initial Windows meson.build. Windows Meson is having problems running, so we'll have to test this later.
2019-03-23 22:28:17 -04:00
Pietro Gagliardi
cdd997b6f6
Added tester build file and made sure everything works. It works!
2019-03-23 18:12:33 -04:00
Pietro Gagliardi
abeb0144d4
Changed the image generator for the tester to print the premultiplied RGBA byte stream instead of uint32_ts; regenerated images.c.
2018-08-29 19:58:35 -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
fb67c429d8
Made background color columns only settable at creation time; added a uiTableParams struct for the purpose. This should end edits to uitable.h for now (until we're ready to document it). Now to just clean up all the implementations.
2018-06-24 10:28:41 -04:00
Pietro Gagliardi
9a79eed2ac
Final cleanup, first part: renamed uiTableData to uiTableValue.
2018-06-23 20:19:30 -04:00
Pietro Gagliardi
0a6a781be7
And implemented row background colors and button clicks. OS X implementation done for now!
2018-06-04 22:14:05 -04:00
Pietro Gagliardi
8c611cf95d
And added the rest of the column types to the tester.
2018-06-04 20:13:35 -04:00
Pietro Gagliardi
3bb050777b
Started converting the test program. First column works fine, second segfaults.
2018-06-03 23:23:48 -04:00
Pietro Gagliardi
374eed7432
Removed the facilities for printing an int as text; this was causing the tester to crash in a weird way on OS X (through NSApplication _crashOnException: without telling me what that exception was) and I didn't intend on this part type to be used in this way anyway...
2018-05-29 20:27:31 -04:00
Ben Campbell
fc2ea17bb8
Add minimal uiTable implementation for windows
...
This uses the win32 common controls listview to implement uiTable.
There are limitations:
- It supports only a single TextPart per column.
- ImagePart, CheckboxPart and ProgessBarPart are not implemented.
- There is no support for cell coloring.
- Cell editing is not implemented.
Some of these will be very hard to support using the standard
common control listview, and probably require an entire custom
listview.
2018-05-22 20:41:49 +12:00
Pietro Gagliardi
ae2eea7975
Merge branch 'master' into table
...
Long-overdue sync.
2018-04-18 10:00:13 -04:00
Pietro Gagliardi
3e76d799b1
Fixed leftovers from utflib-and-attrstr that broke builds of things I didn't fully update yet, since people want to build them anyway (for testing in a CI environment, I suppose; a real unit test suite would be better for this, though, which is one of the reasons for the _future/unittest stuff...)
...
Updates #302 .
2018-03-20 01:58:34 -04:00
Pietro Gagliardi
f7121774e1
Added some TODOs and started the work necessary for the Windows text system migration... which is gonna hurt.
2017-01-17 23:25:26 -05:00
Pietro Gagliardi
18b103c988
Fully reintegrated the table code.
2016-11-27 17:44:52 -05:00
Pietro Gagliardi
52d88d3f36
Re-added the table code. Need to patch together everything else, but.
2016-11-27 17:36:11 -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
1fbfc9dd67
More TODOs.
2016-10-25 01:00:18 -04:00
Pietro Gagliardi
22caa5e502
Implemented the window drag stuff on GTK+. It works!
2016-10-25 00:34:12 -04:00
Pietro Gagliardi
67ff2fa855
Laid out the interface for user window drags.
2016-10-24 23:35:18 -04:00
Pietro Gagliardi
1871f7139d
Some more test areas in the borderless resize test. Now to actually spec out the API (hint: it's two functions in uiArea).
2016-10-24 23:27:44 -04:00
Pietro Gagliardi
8556fc7cd1
Started work on custom user resizes.
2016-10-24 23:08:55 -04:00
Pietro Gagliardi
fc243aed00
Cleaned up debugging code and added the main loop bugfix to the README.
2016-10-24 17:47:23 -04:00
Pietro Gagliardi
e17e69f2ad
Let's experiment with making uiWindowSetSize() not require an event loop.
2016-10-23 22:02:07 -04:00
Pietro Gagliardi
570b794650
Started the work in removing the move and center functions from uiWindow; those simply cannot be done thanks to Wayland.
2016-10-22 15:40:15 -04:00
Pietro Gagliardi
f46edd097b
uiDrawTextWeightUtraBold.
2016-10-21 16:35:46 -04:00
Pietro Gagliardi
53bd751461
Fixed uiImage byte order on OS X.
2016-06-27 16:34:57 -04:00
Pietro Gagliardi
6804f263d4
And implemented (mostly) the progressbar table parts. I think that'll do for uiTable features now.
2016-06-26 18:19:34 -04:00
Pietro Gagliardi
d7caa150b8
Added checkbox table cells. Now just to add progressbar cells and we'll be good.
2016-06-26 15:36:46 -04:00
Pietro Gagliardi
44a723b314
Added uiTable buttons. Not fully working on OS X.
2016-06-26 13:06:33 -04:00
Pietro Gagliardi
e0230d73a6
Started editable uiTable elements.
2016-06-25 23:04:49 -04:00
Pietro Gagliardi
49ab4a886f
Added image table cell parts; implemented on OS X
2016-06-25 19:18:25 -04: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
Pietro Gagliardi
4914d0c64c
Added a way to set the text color of a part.
2016-06-23 22:16:25 -04:00
Pietro Gagliardi
67e8db9efd
Added row background colors.
2016-06-23 11:29:43 -04:00
Pietro Gagliardi
f02fbd2ecf
Some more API cleanup. Don't separate table cell parts from columns.
2016-06-23 09:56:24 -04:00
Pietro Gagliardi
1c70edaef1
Fixed initial OS X uiTable. It works!
2016-06-22 00:58:10 -04:00
Pietro Gagliardi
2f08ec683a
Started the OS X uiTable implementation.
2016-06-21 23:58:17 -04:00
Pietro Gagliardi
b21ec6cf6b
Laid the foundation for uiTable: common code and a test. Now to start actually implementing it.
2016-06-21 22:22:13 -04:00
Pietro Gagliardi
d93bb2c48f
Formatting fixes.
2016-06-21 12:45:04 -04:00
Pietro Gagliardi
1f20772b46
Merge pull request #123 from kainjow/void-ptr-warning
...
Fix void* warning
2016-06-21 12:43:43 -04:00
Pietro Gagliardi
9656a81c77
Added uiNewVerticalSeparator().
2016-06-17 11:02:17 -04:00
Pietro Gagliardi
ae14542c9a
Improved uiMainSteps().
2016-06-17 09:22:31 -04:00
Pietro Gagliardi
cc4c5f7bd5
Tried to see if we can fix up uiMainSteps() to not need parameters after all. Now to actually apply it.
2016-06-17 09:16:30 -04:00
Pietro Gagliardi
99545e8775
Fixed up the progressbar changes.
2016-06-16 17:43:04 -04:00
Pietro Gagliardi
798061f7f6
Merge pull request #144 from ProtonMail/progress-bar
...
Improves progress bar
2016-06-16 16:44:42 -04:00
Pietro Gagliardi
d4492c06a9
Changed the uiMainSteps() API as the GTK+ port will need it to be done this way...
2016-06-16 13:49:50 -04:00
Pietro Gagliardi
da4b396aaf
Added uiMainSteps(), which sets things up to use uiMainStep() for the main loop. Implemented on OS X.
2016-06-16 13:45:24 -04:00
Pietro Gagliardi
b4d0e08a22
Started the work to fix uiMainStep().
2016-06-16 13:41:13 -04:00
Pietro Gagliardi
377f46814a
Started adding borderless uiWindow support; implemented on Windows.
2016-06-16 11:20:28 -04:00
Pietro Gagliardi
fd9af04123
Implemented fullscreen on OS X.
2016-06-16 09:29:28 -04:00
Pietro Gagliardi
69cafde7f3
Started the fullscreen window stuff.
2016-06-16 08:07:50 -04:00
Pietro Gagliardi
6c56f1e1ce
Implemented the window size stuff on Windows.
2016-06-15 22:52:35 -04:00
Pietro Gagliardi
5fbe85c21a
Started adding the uiWindow size code.
2016-06-15 22:28:44 -04:00
emersion
983a53d3c3
Replaces uiProgressBar(Set)Indeterminate() by value=-1
2016-06-15 23:17:23 +02:00
Pietro Gagliardi
f98318fb3a
Started implementing the new uiWindows stuff on GTK+.
2016-06-15 16:45:49 -04:00
emersion
560cca5bc9
Adds uiProgressBar(Set)Indeterminate for unix
2016-06-15 21:51:08 +02:00
Pietro Gagliardi
53bec81925
More uiWindow positioning refinement and implementation on OS X.
2016-06-15 14:57:52 -04:00
Pietro Gagliardi
4465d37d2e
Started uiWindow positioning stuff.
2016-06-15 13:21:07 -04:00
Pietro Gagliardi
efe207ca37
Added a test of uiFormDelete().
2016-06-15 12:06:19 -04:00