diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-04-13 18:25:58 -0400 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-04-13 18:25:58 -0400 |
commit | 51a81a7ccfff1eaa2261e8c4abb2e3fc78e60c4a (patch) | |
tree | bde8c094bc8c3f5ab718db66e9040eaf09746acd /tests | |
parent | ba0a651f1a4513610c97caf47767d36d086cb0fa (diff) |
Enable test_sdl_ogl
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 6 | ||||
-rw-r--r-- | tests/screenshot-gray.png | bin | 0 -> 170477 bytes |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py index a479cf9f..613f9977 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -7003,12 +7003,12 @@ elif 'browser' in str(sys.argv): Popen(['python', EMCC, os.path.join(self.get_dir(), 'sdl_gl_read.c'), '-o', 'something.html']).communicate() self.run_browser('something.html', '.', '/report_result?1') - def zzztest_sdl_ogl(self): + def test_sdl_ogl(self): # SDL, OpenGL, textures, immediate mode shutil.copyfile(path_from_root('tests', 'screenshot.png'), os.path.join(self.get_dir(), 'screenshot.png')) - self.reftest(path_from_root('tests', 'gears.png')) + self.reftest(path_from_root('tests', 'screenshot-gray.png')) Popen(['python', EMCC, path_from_root('tests', 'sdl_ogl.c'), '-o', 'something.html', '--pre-js', 'reftest.js', '--preload-file', 'screenshot.png']).communicate() - self.run_browser('something.html', 'You should see animating gears.', '/report_result?1779') + self.run_browser('something.html', 'You should see an image with gray at the top.', '/report_result?0') def test_worker(self): # Test running in a web worker diff --git a/tests/screenshot-gray.png b/tests/screenshot-gray.png Binary files differnew file mode 100644 index 00000000..928f9f9a --- /dev/null +++ b/tests/screenshot-gray.png |