aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/runner.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index d16d3e8b..99175b36 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -6961,6 +6961,15 @@ elif 'browser' in str(sys.argv):
assert os.path.exists('something.html'), output
self.run_browser('something.html', 'You should see animating gears.', '/report_result?0')
+ def test_glgears_animation(self):
+ output = Popen(['python', EMCC, path_from_root('tests', 'hello_world_gles.c'), '-o', 'something.html',
+ '-DHAVE_BUILTIN_SINCOS',
+ '--shell-file', path_from_root('tests', 'hello_world_gles_shell.html')],
+ stdout=PIPE, stderr=PIPE).communicate()
+ assert len(output[0]) == 0, output[0]
+ assert os.path.exists('something.html'), output
+ self.run_browser('something.html', 'You should see animating gears.', '/report_gl_result?true')
+
def test_glgears_bad(self):
# Make sure that OpenGL ES is not available if typed arrays are not used
output = Popen(['python', EMCC, path_from_root('tests', 'hello_world_gles.c'), '-o', 'something.html',