@@ -43,13 +43,13 @@ def test_sdl_mousewheel(self):
43
43
self .btest_exit ('test_sdl_mousewheel.c' )
44
44
45
45
def test_sdl_touch (self ):
46
- self .btest ('sdl_touch .c' , args = ['-O2' , '-g1' , '--closure=1' ], expected = '0' )
46
+ self .btest ('test_sdl_touch .c' , args = ['-O2' , '-g1' , '--closure=1' ], expected = '0' )
47
47
48
48
def test_sdl_wm_togglefullscreen (self ):
49
- self .btest_exit ('sdl_wm_togglefullscreen .c' )
49
+ self .btest_exit ('test_sdl_wm_togglefullscreen .c' )
50
50
51
51
def test_sdl_fullscreen_samecanvassize (self ):
52
- self .btest_exit ('sdl_fullscreen_samecanvassize .c' )
52
+ self .btest_exit ('test_sdl_fullscreen_samecanvassize .c' )
53
53
54
54
def test_sdl2_togglefullscreen (self ):
55
55
self .btest_exit ('browser/test_sdl_togglefullscreen.c' , args = ['-sUSE_SDL=2' ])
@@ -62,7 +62,7 @@ def test_sdl_audio(self):
62
62
create_file ('bad.ogg' , 'I claim to be audio, but am lying' )
63
63
64
64
# use closure to check for a possible bug with closure minifying away newer Audio() attributes
65
- self .btest_exit ('sdl_audio .c' , args = ['--preload-file' , 'sound.ogg' , '--preload-file' , 'sound2.wav' , '--embed-file' , 'the_entertainer.ogg' , '--preload-file' , 'noise.ogg' , '--preload-file' , 'bad.ogg' ])
65
+ self .btest_exit ('test_sdl_audio .c' , args = ['--preload-file' , 'sound.ogg' , '--preload-file' , 'sound2.wav' , '--embed-file' , 'the_entertainer.ogg' , '--preload-file' , 'noise.ogg' , '--preload-file' , 'bad.ogg' ])
66
66
67
67
# print('SDL2')
68
68
# check sdl2 as well
@@ -80,7 +80,7 @@ def test_sdl_audio(self):
80
80
def test_sdl_audio_mix_channels (self , args ):
81
81
shutil .copyfile (test_file ('sounds/noise.ogg' ), self .in_dir ('sound.ogg' ))
82
82
83
- self .btest_exit ('sdl_audio_mix_channels .c' , args = ['-O2' , '--minify=0' , '--preload-file' , 'sound.ogg' ] + args )
83
+ self .btest_exit ('test_sdl_audio_mix_channels .c' , args = ['-O2' , '--minify=0' , '--preload-file' , 'sound.ogg' ] + args )
84
84
85
85
@parameterized ({
86
86
'' : ([],),
@@ -91,17 +91,17 @@ def test_sdl_audio_mix(self, args):
91
91
shutil .copyfile (test_file ('sounds/the_entertainer.ogg' ), self .in_dir ('music.ogg' ))
92
92
shutil .copyfile (test_file ('sounds/noise.ogg' ), self .in_dir ('noise.ogg' ))
93
93
94
- self .btest_exit ('sdl_audio_mix .c' , args = ['-O2' , '--minify=0' , '--preload-file' , 'sound.ogg' , '--preload-file' , 'music.ogg' , '--preload-file' , 'noise.ogg' ] + args )
94
+ self .btest_exit ('test_sdl_audio_mix .c' , args = ['-O2' , '--minify=0' , '--preload-file' , 'sound.ogg' , '--preload-file' , 'music.ogg' , '--preload-file' , 'noise.ogg' ] + args )
95
95
96
96
def test_sdl_audio_panning (self ):
97
97
shutil .copyfile (test_file ('sounds/the_entertainer.wav' ), self .in_dir ('the_entertainer.wav' ))
98
98
99
99
# use closure to check for a possible bug with closure minifying away newer Audio() attributes
100
- self .btest_exit ('sdl_audio_panning .c' , args = ['-O2' , '--closure=1' , '--minify=0' , '--preload-file' , 'the_entertainer.wav' , '-sEXPORTED_FUNCTIONS=_main,_play' ])
100
+ self .btest_exit ('test_sdl_audio_panning .c' , args = ['-O2' , '--closure=1' , '--minify=0' , '--preload-file' , 'the_entertainer.wav' , '-sEXPORTED_FUNCTIONS=_main,_play' ])
101
101
102
102
def test_sdl_audio_beeps (self ):
103
103
# use closure to check for a possible bug with closure minifying away newer Audio() attributes
104
- self .btest_exit ('sdl_audio_beep .cpp' , args = ['-O2' , '--closure=1' , '--minify=0' , '-sDISABLE_EXCEPTION_CATCHING=0' , '-o' , 'page.html' ])
104
+ self .btest_exit ('test_sdl_audio_beep .cpp' , args = ['-O2' , '--closure=1' , '--minify=0' , '-sDISABLE_EXCEPTION_CATCHING=0' , '-o' , 'page.html' ])
105
105
106
106
def test_sdl2_mixer_wav (self ):
107
107
shutil .copyfile (test_file ('sounds/the_entertainer.wav' ), 'sound.wav' )
0 commit comments