diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-12-31 11:26:20 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-31 11:26:20 -0800 |
commit | 3b2510764a224afc4e9f06c9e3dd92dad131ed55 (patch) | |
tree | de377f3e7ad1f2c5b2755e7722e7edac1110dd27 | |
parent | 6856849cc520459fe9266ccaa84190b319eedadc (diff) |
some debugging for browser fs api test
-rw-r--r-- | tests/emscripten_fs_api_browser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/emscripten_fs_api_browser.cpp b/tests/emscripten_fs_api_browser.cpp index 9936a09c..ba5bf0a5 100644 --- a/tests/emscripten_fs_api_browser.cpp +++ b/tests/emscripten_fs_api_browser.cpp @@ -31,6 +31,8 @@ void onErrorData(void *arg) { } void wait_wgets() { + printf("%d\n", get_count); + if (get_count == 3) { emscripten_async_wget_data( "http://localhost:8888/screenshot.png", @@ -101,7 +103,7 @@ int main() { onLoaded, onError); - emscripten_set_main_loop(wait_wgets, 0, 0); + emscripten_set_main_loop(wait_wgets, 1000, 0); return 0; } |