aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-02 16:46:51 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-02 16:46:51 -0700
commit4b3253624632e40dc0a2b5476f67a2460dfde217 (patch)
tree8a531f64145451edf8294baaaaab54d71f9d87f3 /tests/runner.py
parent87fc6b71372181f69718652dbc2a0a3cc3b3351c (diff)
fix test_glgears
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 431a1c6e..c1d2dc2b 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -6857,14 +6857,13 @@ elif 'browser' in str(sys.argv):
self.run_browser('main.html', 'You should see that the worker was called, and said "hello from worker!"')
def test_glgears(self):
- # test the OpenGL ES implementation
+ self.reftest(path_from_root('tests', 'gears.png'))
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')],
+ '-DHAVE_BUILTIN_SINCOS', '--pre-js', 'reftest.js'],
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')
+ self.run_browser('something.html', 'You should see animating gears.', '/report_result?0')
def test_glgears_bad(self):
# Make sure that OpenGL ES is not available if typed arrays are not used