diff options
author | James Gregory <james@james.id.au> | 2013-05-10 17:26:06 -0700 |
---|---|---|
committer | James Gregory <james@james.id.au> | 2013-05-10 17:26:06 -0700 |
commit | 8f401ce051259ea128b943a21a57a93cf8bf5b03 (patch) | |
tree | 32a64d16c14bbc8ff865cdba41809affd923f9d6 /tests/runner.py | |
parent | b41b535aeac53740dec416f617378ec4e4e382ce (diff) |
Issue #645: Implement eglQuerySurface for EGL_HEIGHT and EGL_WIDTH.
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index c414c619..50929dff 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -11728,6 +11728,12 @@ elif 'browser' in str(sys.argv): Popen([PYTHON, EMCC, '-O2', os.path.join(self.get_dir(), 'glfw.c'), '-o', 'page.html']).communicate() self.run_browser('page.html', '', '/report_result?1') + def test_egl_width_height(self): + open(os.path.join(self.get_dir(), 'test_egl_width_height.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'test_egl_width_height.c')).read())) + + Popen([PYTHON, EMCC, '-O2', os.path.join(self.get_dir(), 'test_egl_width_height.c'), '-o', 'page.html']).communicate() + self.run_browser('page.html', 'Should print "(300, 150)" -- the size of the canvas in pixels', '/report_result?1') + def test_freealut(self): programs = self.get_library('freealut', os.path.join('examples', 'hello_world.bc'), make_args=['EXEEXT=.bc']) for program in programs: |