diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-05-16 13:34:33 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-05-16 13:34:33 -0700 |
commit | 845bfb676524358a70e0dee0e502f4df6725fce1 (patch) | |
tree | 963ad472b2c97d62e46689330787fb59618064cf /tests/runner.py | |
parent | 74fd2c236f8865d1a9c00bdace466bee8ed2eb1c (diff) | |
parent | 840a8691d61bf592ad175266e65ae54e12999a3a (diff) |
Merge branch 'incoming' of github.com:kripken/emscripten into incoming
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 2b6e93da..15a851c6 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -7330,6 +7330,13 @@ elif 'browser' in str(sys.argv): Popen(['python', EMCC, path_from_root('tests', 'sdl_ogl.c'), '-O2', '--minify', '0', '-o', 'something.html', '--pre-js', 'reftest.js', '--preload-file', 'screenshot.png']).communicate() self.run_browser('something.html', 'You should see an image with gray at the top.', '/report_result?0') + def test_sdl_ogl_defaultmatrixmode(self): + # SDL, OpenGL, textures, immediate mode. Closure for more coverage + shutil.copyfile(path_from_root('tests', 'screenshot.png'), os.path.join(self.get_dir(), 'screenshot.png')) + self.reftest(path_from_root('tests', 'screenshot-gray-purple.png')) + Popen(['python', EMCC, path_from_root('tests', 'sdl_ogl_defaultMatrixMode.c'), '-O2', '--minify', '0', '-o', 'something.html', '--pre-js', 'reftest.js', '--preload-file', 'screenshot.png']).communicate() + self.run_browser('something.html', 'You should see an image with gray at the top.', '/report_result?0') + def test_sdl_ogl_p(self): # Immediate mode with pointers shutil.copyfile(path_from_root('tests', 'screenshot.png'), os.path.join(self.get_dir(), 'screenshot.png')) |