| 187 | } |
| 188 | |
| 189 | const char *beforeunload_callback(int eventType, const void *reserved, void *userData) { |
| 190 | #ifdef REPORT_RESULT |
| 191 | return ""; // For test harness, don't show a confirmation dialog to not block and keep the test runner automated. |
| 192 | #else |
| 193 | return "Do you really want to leave the page?"; |
| 194 | #endif |
| 195 | } |
| 196 | |
| 197 | void formatTime(char *str, int seconds) { |
| 198 | int h = seconds / (60*60); |
nothing calls this directly
no outgoing calls
no test coverage detected