diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-16 14:43:19 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-16 14:43:19 -0700 |
commit | 4782b382e907c7db873e66b65e2aac26096756b0 (patch) | |
tree | 3d37af6abb934afdac45117fd2b6fa9ccc471b3a /tests/runner.py | |
parent | 1c4640d267f19acc26b51fbefbe572664e94c02e (diff) | |
parent | 162268af28851a720f3d97ad3f160e697f358660 (diff) |
Merge pull request #1167 from j4m3z0r/issue645
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 87eab8c6..f1a97d9a 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -11830,6 +11830,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: |