diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-16 12:58:13 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-16 12:58:13 -0700 |
commit | 1d89260748bcf2ba5965ffa67126f3edaef31f07 (patch) | |
tree | d319cf61b7fdbf858e40869d0dff14ca8ccc000f /tests/test_browser.py | |
parent | f46ea8746cd469b8ba664e52a63b6112fcd48b9e (diff) |
allow overriding a gl function with the same name, and keep the original accessible through getProcAddress
Diffstat (limited to 'tests/test_browser.py')
-rw-r--r-- | tests/test_browser.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_browser.py b/tests/test_browser.py index 323677ba..69fb6f7e 100644 --- a/tests/test_browser.py +++ b/tests/test_browser.py @@ -859,6 +859,11 @@ Press any key to continue.''' args=['--preload-file', 'screenshot.png', '-s', 'LEGACY_GL_EMULATION=1'], message='You should see an image with gray at the top.') + def test_sdl_ogl_proc_alias(self): + shutil.copyfile(path_from_root('tests', 'screenshot.png'), os.path.join(self.get_dir(), 'screenshot.png')) + self.btest('sdl_ogl_proc_alias.c', reference='screenshot-gray-purple.png', reference_slack=1, + args=['-O2', '-g2', '-s', 'INLINING_LIMIT=1', '--preload-file', 'screenshot.png', '-s', 'LEGACY_GL_EMULATION=1', '-s', 'VERBOSE=1']) + def test_sdl_fog_simple(self): shutil.copyfile(path_from_root('tests', 'screenshot.png'), os.path.join(self.get_dir(), 'screenshot.png')) self.btest('sdl_fog_simple.c', reference='screenshot-fog-simple.png', |