Skip to content

Commit

Permalink
Add test for scenario when not explicitly linking to system JS librar…
Browse files Browse the repository at this point in the history
…ies.
  • Loading branch information
juj committed Dec 7, 2016
1 parent 815a35b commit 022c4db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ def setUpClass(self):
print 'Running the browser tests. Make sure the browser allows popups from localhost.'
print

def test_sdl1_in_emscripten_nonstrict_mode(self):
if 'EMCC_STRICT' in os.environ and int(os.environ['EMCC_STRICT']): return self.skip('This test requires being run in non-strict mode (EMCC_STRICT env. variable unset)')
# TODO: This test is verifying behavior that will be deprecated at some point in the future, remove this test once
# system JS libraries are no longer automatically linked to anymore.
self.btest('hello_world_sdl.cpp', reference='htmltest.png')

def test_sdl1(self):
self.btest('hello_world_sdl.cpp', reference='htmltest.png', args=['-lSDL', '-lGL'])
self.btest('hello_world_sdl.cpp', reference='htmltest.png', args=['-s', 'USE_SDL=1', '-lGL']) # is the default anyhow
Expand Down

0 comments on commit 022c4db

Please sign in to comment.