diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-11-13 14:02:29 +0200 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-11-13 14:04:15 +0200 |
commit | 717cfd4874876cbb1cedc299b5863a46a11ff758 (patch) | |
tree | 12dd8906e456fff21b0c16f42204c9f47d9a4cd3 /tests/test_browser.py | |
parent | 9df84e4fdc2ea1580402a54a791257345d7b079d (diff) |
Add unit test for EGL context creation and confirming that #1775 and #1793 work.
Diffstat (limited to 'tests/test_browser.py')
-rw-r--r-- | tests/test_browser.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_browser.py b/tests/test_browser.py index 1900e2cf..111702e6 100644 --- a/tests/test_browser.py +++ b/tests/test_browser.py @@ -1147,6 +1147,12 @@ keydown(100);keyup(100); // trigger the end Popen([PYTHON, EMCC, '-O2', os.path.join(self.get_dir(), 'glfw.c'), '-o', 'page.html', '-s', 'LEGACY_GL_EMULATION=1']).communicate() self.run_browser('page.html', '', '/report_result?1') + def test_egl(self): + open(os.path.join(self.get_dir(), 'test_egl.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'test_egl.c')).read())) + + Popen([PYTHON, EMCC, '-O2', os.path.join(self.get_dir(), 'test_egl.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())) |