Skip to content

Commit 13ccbfe

Browse files
committed
Add test for scenario when not explicitly linking to system JS libraries.
1 parent 22fbf70 commit 13ccbfe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_browser.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ def setUpClass(self):
6161
print 'Running the browser tests. Make sure the browser allows popups from localhost.'
6262
print
6363

64+
def test_sdl1_in_emscripten_nonstrict_mode(self):
65+
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)')
66+
# TODO: This test is verifying behavior that will be deprecated at some point in the future, remove this test once
67+
# system JS libraries are no longer automatically linked to anymore.
68+
self.btest('hello_world_sdl.cpp', reference='htmltest.png')
69+
6470
def test_sdl1(self):
6571
self.btest('hello_world_sdl.cpp', reference='htmltest.png', args=['-lSDL', '-lGL'])
6672
self.btest('hello_world_sdl.cpp', reference='htmltest.png', args=['-s', 'USE_SDL=1', '-lGL']) # is the default anyhow

0 commit comments

Comments
 (0)