diff options
author | Jez Ng <me@jezng.com> | 2013-06-17 18:00:44 -0700 |
---|---|---|
committer | Jez Ng <me@jezng.com> | 2013-06-17 18:30:43 -0700 |
commit | 83d1e40dc67587c0eee1a5103ee51cfc435aa91d (patch) | |
tree | 2cdef0c4a216a38526dd58f9d472404cdcdc27f4 /tests/runner.py | |
parent | 31f73d04a0f1120746e40b7a35b5d609dbc598ab (diff) |
Fix SDL color encoding.
Little-endian + RGBA means that red is located at the lowest-order bits,
not the highest.
The hello_world_sdl test is now portable, because we no longer write to
individual bytes.
We also add a test for a completely blank screen, which should be black, not
red.
Closes #1287, #761, #765.
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index e7434479..4b8a3010 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -12735,6 +12735,9 @@ elif 'browser' in str(sys.argv): def test_cube_explosion(self): self.btest('cube_explosion.c', expected=['667220544', '-1543354600', '-1485258415']) + def test_sdl_canvas_blank(self): + self.btest('sdl_canvas_blank.c', reference='sdl_canvas_blank.png') + def test_sdl_canvas_palette(self): self.btest('sdl_canvas_palette.c', reference='sdl_canvas_palette.png') |