aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_redisplay.c
AgeCommit message (Collapse)AuthorFilesLines
2023-01-11Spread tests around the screenDavid Robillard1-1/+2
This makes it unlikely for tests to be completely obscured, which should hopefully make things a bit more consistent and reliable, especially when running all of the tests in parallel. It also makes things a bit less visually confusing.
2023-01-09Raise test windows initiallyDavid Robillard1-1/+1
This seems to make thing a bit more reliable, and matches what was happening before the addition of more precise show commands.
2023-01-08Add support for raising windowsDavid Robillard1-1/+1
2022-05-21Add a uniform API for setting size hintsDavid Robillard1-1/+1
This collapses many functions into one, which makes the API more easily extensible and reduces code size.
2022-05-20Use consistent class names and titles in tests and examplesDavid Robillard1-1/+1
2022-04-23Fix IWYU warningsDavid Robillard1-1/+0
I suspect that using the same configuration across both C and C++ is starting to wear a bit thin, but this will do for now.
2022-04-23Relax redisplay test to pass on MacOS 11.6David Robillard1-4/+6
Since upgrading to 11.6 (on an Intel Macbook), this test no longer seems to pass. It's unfortunate to not test that small redisplay requests only result in small exposures, but I don't think the previous strict check reflects reality. Exposing more than the application requested, for whatever reason, is a natural part of window environments, so I don't know if this is something that can be reliably unit tested.
2022-04-23Add descriptive verbose output to test_redisplayDavid Robillard1-8/+21
2021-12-17Adopt REUSE machine-readable licensing standardDavid Robillard1-15/+2
See https://reuse.software/ for details.
2021-05-06Set distinct window titles for testsDavid Robillard1-0/+1
This makes things a little more clear when something goes wrong, for example if a test hangs.
2021-05-06Use consistent name for test structureDavid Robillard1-21/+21
2021-01-02Simplify clang-format configuration and format all codeDavid Robillard1-85/+85
2020-11-25Rename puglShowWindow and puglHideWindow to puglShow an puglHideDavid Robillard1-1/+1
These names were confusing because a view is not necessarily a window. Since there's no room for ambiguity here, simply drop the superfluous word.
2020-10-30Simplify header namesDavid Robillard1-1/+1
2020-07-05Improve struct packingDavid Robillard1-3/+3
Unfortunately there is no warning like Wpadded but only for internal padding, so that can't be turned on, but if there was, after this commit the build would be clean with it. Maybe some day...
2020-07-02Fix cast alignment warnings on 32-bit ARMDavid Robillard1-2/+4
2020-05-16Add default and maximum sizeDavid Robillard1-0/+1
2020-05-16Use email address in copyright headersDavid Robillard1-1/+1
Not really sure why I used a web link here (maybe because it's more stable), but this is more conventional.
2020-05-16Fix redisplay test on MacOSDavid Robillard1-3/+9
This does two things: posts the redisplay when an update event is received (which is correct pattern for this now), and uses larger even numbers for the redisplay region so they make it through the pixel/point conversion process without loss.
2020-04-01Replace puglShowWindow() with puglRealize()David Robillard1-1/+1
2020-03-15Unify event loop functions as puglUpdate()David Robillard1-9/+8
The previous separation between polling and dispatching was a lie, especially on MacOS where it is impossible to only poll for events without dispatching anything. Providing such an API is misleading, and problematic in various other ways. So, merge them into a single puglUpdate() function which can do the right thing on all platforms. This also adds the behaviour of actually processing all events in the given time interval, which is almost always what clients actually want to do when using a positive timeout (naively doing this before caused terrible input lag).
2020-03-15Add type and flags to worldDavid Robillard1-1/+1
Unfortunately this is an API break, but there's no reasonable way to deprecate the old function and this is required for things to work correctly. The type will be used in following commits to tick the main loop and dispatch events correctly for either case.
2020-03-09Add test for redisplays posted in the event loopDavid Robillard1-0/+133