diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-23 10:27:42 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-23 10:27:42 -0700 |
commit | a7573355dbfafe35ec7620c51dc0d7929b024fb7 (patch) | |
tree | 02e8b0b206d1b77b7fe56426306ec4df092392ab | |
parent | 5a57636c45933651bbf6d770120b636abe9fd739 (diff) |
improve sdl image test to include blits of nonequal size surfaces
-rwxr-xr-x | tests/runner.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py index a39780dd..c34334ea 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -6356,14 +6356,14 @@ f.close() self.run_browser('page.html', '', '/report_result?600') def test_sdl_image_compressed(self): - for image, worth_compressing, width, height in [(path_from_root('tests', 'screenshot2.png'), True, 300, 225), - (path_from_root('tests', 'screenshot.jpg'), False, 600, 450)]: + for image, worth_compressing, width in [(path_from_root('tests', 'screenshot2.png'), True, 300), + (path_from_root('tests', 'screenshot.jpg'), False, 600)]: self.clear() print image, worth_compressing basename = os.path.basename(image) shutil.copyfile(image, os.path.join(self.get_dir(), basename)) - open(os.path.join(self.get_dir(), 'sdl_image.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'sdl_image.c')).read()).replace('screenshot.jpg', basename).replace('600', str(width)).replace('450', str(height))) + open(os.path.join(self.get_dir(), 'sdl_image.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'sdl_image.c')).read()).replace('screenshot.jpg', basename)) Popen(['python', EMCC, os.path.join(self.get_dir(), 'sdl_image.c'), '--preload-file', basename, '-o', 'page.html', '--compression', '%s,%s,%s' % (path_from_root('third_party', 'lzma.js', 'lzma-native'), |