aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-31 11:26:20 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-31 11:26:20 -0800
commit3b2510764a224afc4e9f06c9e3dd92dad131ed55 (patch)
treede377f3e7ad1f2c5b2755e7722e7edac1110dd27
parent6856849cc520459fe9266ccaa84190b319eedadc (diff)
some debugging for browser fs api test
-rw-r--r--tests/emscripten_fs_api_browser.cpp4
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;
}