diff options
author | Aleksander Guryanov <caiiiycuk@gmail.com> | 2012-06-09 00:07:12 +0700 |
---|---|---|
committer | Aleksander Guryanov <caiiiycuk@gmail.com> | 2012-06-13 20:55:11 +0700 |
commit | aad005f54a21a91b64bc07fe7ede67bd79f4f2d2 (patch) | |
tree | 62851317e180d7971678a2cfd61a54e263d66bc0 /tests/runner.py | |
parent | c406b3bc87fa69ae6a1fc7a1c6c8b7118f4ffec4 (diff) |
Implementation of SDL_HWPALETTE
Little bit refactoring for copyIndexedColorData now it can accept dirty rect
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 779e51da..49991498 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -7448,6 +7448,19 @@ elif 'browser' in str(sys.argv): Popen(['python', EMCC, os.path.join(self.get_dir(), 'sdl_canvas.c'), '-o', 'page.html']).communicate() self.run_browser('page.html', '', '/report_result?1') + def test_sdl_canvas_palette(self): + open(os.path.join(self.get_dir(), 'sdl_canvas_palette.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'sdl_canvas_palette.c')).read())) + + Popen(['python', EMCC, os.path.join(self.get_dir(), 'sdl_canvas_palette.c'), '-o', 'page.html']).communicate() + self.run_browser('page.html', '') + + def test_sdl_canvas_palette_2(self): + open(os.path.join(self.get_dir(), 'sdl_canvas_palette_2.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'sdl_canvas_palette_2.c')).read())) + open(os.path.join(self.get_dir(), 'pre.js'), 'w').write('Module[\'preRun\'] = function() { SDL.defaults.copyOnLock = false }') + + Popen(['python', EMCC, os.path.join(self.get_dir(), 'sdl_canvas_palette_2.c'), '-o', 'page.html', '--pre-js', 'pre.js']).communicate() + self.run_browser('page.html', '') + def test_sdl_key(self): open(os.path.join(self.get_dir(), 'pre.js'), 'w').write(''' Module.postRun = function() { |