Pierre Ossman
88e95cba63
TEMP: Switch to web-test-runner
...
Karma is deprecated, so switch to something that is still maintained.
2024-08-05 16:33:28 +02:00
Pierre Ossman
236fa87af4
Explicitly import test support routines
...
This gives us a strong ordering, and clear dependencies, which is needed
in other test runners.
2024-08-05 16:33:28 +02:00
Pierre Ossman
870c24d5bd
Avoid polluting global namespace
...
With modules, this is now considered bad form.
2024-08-05 16:33:28 +02:00
Pierre Ossman
1b2fe3321b
Manually load sinon and chai
...
karma-sinon-chai is not compatible with Chai 5+, and Karma is no longer
being updated.
Load sinon and chai manually instead, until we can have a long term plan
in place.
2024-08-05 15:49:39 +02:00
Pierre Ossman
fb3c8f64e9
Switch Display.flush() to use a promise
...
That is the modern way to handle operations that cannot complete
immediately.
2023-06-04 19:00:33 +02:00
Pierre Ossman
eb0ad829d2
Check that decoders consume all data
...
This is extra important in the tests where we expect no changes to the
display, as otherwise we can't tell the difference between success and a
decoder that is simply waiting for more data.
2023-06-03 15:36:29 +02:00
Pierre Ossman
c1281b136d
Add workaround for Firefox PNG rounding bug
2020-09-28 12:24:56 +02:00
Pierre Ossman
b91b1e8edc
Handle empty rects in RAW decoder as well
...
It was overlooked in the previous commit because we couldn't feed
empty data messages through the test framework.
2020-09-07 12:58:52 +02:00
Pierre Ossman
15cfa13563
Add tests for the Tight decoders
2020-06-08 07:48:20 +02:00
Pierre Ossman
111225fa41
Split decoder tests to separate files
2020-06-08 07:46:42 +02:00