view tests/sleep.ur @ 696:79a49c509007

Avoid generating empty <script> blocks
author Adam Chlipala <adamc@hcoop.net>
date Sun, 05 Apr 2009 09:26:00 -0400
parents 500e93aa436f
children
line wrap: on
line source
fun annoyer () =
    alert "Hi!";
    sleep 5000;
    annoyer ()

fun main () : transaction page = return <xml><body onload={annoyer ()}/></xml>