aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-05-09 14:33:47 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-05-09 14:33:47 -0700
commit5d22fa213f7ec66426e2a838b07a38802714dcef (patch)
tree33b1bcc62d206a05579d61fc49569ecfea549666 /tests
parent5b8a74f2bc18167daf802ee11cd4631e61287a0a (diff)
remove test_sdl_audio_quickload which has been broken for a very long time
Diffstat (limited to 'tests')
-rw-r--r--tests/sdl_audio_quickload.c44
-rw-r--r--tests/test_interactive.py6
2 files changed, 0 insertions, 50 deletions
diff --git a/tests/sdl_audio_quickload.c b/tests/sdl_audio_quickload.c
deleted file mode 100644
index 1525d048..00000000
--- a/tests/sdl_audio_quickload.c
+++ /dev/null
@@ -1,44 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <SDL/SDL.h>
-#include <SDL/SDL_mixer.h>
-#include <assert.h>
-#include <limits.h>
-#include <emscripten.h>
-
-Mix_Chunk *sound;
-
-void play() {
- int channel = Mix_PlayChannel(-1, sound, 1);
- assert(channel == 0);
-
- int result = 1;
- REPORT_RESULT();
-}
-
-int main(int argc, char **argv) {
- SDL_Init(SDL_INIT_AUDIO);
-
- int ret = Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 1024);
- assert(ret == 0);
-
- Uint16* buffer = (Uint16*)malloc(10*44100*sizeof(Uint16));
- for (Uint32 i = 0; i < 10*44100; ++i) {
- buffer[i] = (i * 5) % UINT32_MAX;
- }
- sound = Mix_QuickLoad_RAW((Uint8*) buffer, 10*44100*sizeof(Uint16));
- assert(sound);
-
- play();
-
- emscripten_run_script("element = document.createElement('input');"
- "element.setAttribute('type', 'button');"
- "element.setAttribute('value', 'replay!');"
- "element.setAttribute('onclick', 'Module[\"_play\"]()');"
- "document.body.appendChild(element);");
-
- printf("you should one sounds. press the button to replay!\n");
-
- return 0;
-}
-
diff --git a/tests/test_interactive.py b/tests/test_interactive.py
index aa1d96af..7c968f78 100644
--- a/tests/test_interactive.py
+++ b/tests/test_interactive.py
@@ -59,12 +59,6 @@ class interactive(BrowserCore):
Popen([PYTHON, EMCC, '-O2', '--minify', '0', os.path.join(self.get_dir(), 'sdl_audio_mix.c'), '--preload-file', 'sound.ogg', '--preload-file', 'music.ogg', '--preload-file', 'noise.ogg', '-o', 'page.html']).communicate()
self.run_browser('page.html', '', '/report_result?1')
- def test_sdl_audio_quickload(self):
- open(os.path.join(self.get_dir(), 'sdl_audio_quickload.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'sdl_audio_quickload.c')).read()))
-
- Popen([PYTHON, EMCC, '-O2', '--minify', '0', os.path.join(self.get_dir(), 'sdl_audio_quickload.c'), '-o', 'page.html', '-s', 'EXPORTED_FUNCTIONS=["_main", "_play"]']).communicate()
- self.run_browser('page.html', '', '/report_result?1')
-
def test_sdl_audio_beeps(self):
open(os.path.join(self.get_dir(), 'sdl_audio_beep.cpp'), 'w').write(self.with_report_result(open(path_from_root('tests', 'sdl_audio_beep.cpp')).read()))