aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-06-21 15:38:29 -0400
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-06-21 15:44:17 -0400
commit55a8e9a02636154ebd99b1b030edfa970acad6bd (patch)
tree1cda15d98796b31b8c4e297ef80bd116afa94a4a /tests/runner.py
parent191ea8871076116854a2588b7c9ecc1309ae2985 (diff)
Implement GL_EXP2 fog mode
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index c26c311e..46b95979 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -7666,6 +7666,13 @@ elif 'browser' in str(sys.argv):
Popen(['python', EMCC, path_from_root('tests', 'sdl_fog_density.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 fog.', '/report_result?0')
+ def test_sdl_fog_exp2(self):
+ # SDL, OpenGL, textures, fog, 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-fog-exp2.png'))
+ Popen(['python', EMCC, path_from_root('tests', 'sdl_fog_exp2.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 fog.', '/report_result?0')
+
def test_worker(self):
# Test running in a web worker
output = Popen(['python', EMCC, path_from_root('tests', 'hello_world_worker.cpp'), '-o', 'worker.js'], stdout=PIPE, stderr=PIPE).communicate()