diff options
author | Adam Chlipala <adam@chlipala.net> | 2011-11-18 17:17:22 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2011-11-18 17:17:22 -0500 |
commit | 69e08bd046195515eed94d425ebd4cf549d5a549 (patch) | |
tree | 58f415db1e75c76a0ed94a4be3309237a56df90a /tests | |
parent | a62d5a46d2c1b8e44fc60862205a07beef499742 (diff) |
Regenerate proper Autotools files; fix JS stringToTime and add stringToTime_error
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stringToTime.ur | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/stringToTime.ur b/tests/stringToTime.ur new file mode 100644 index 00000000..df7b7eed --- /dev/null +++ b/tests/stringToTime.ur @@ -0,0 +1,9 @@ +fun main () : transaction page = + s <- source ""; + return <xml><body> + <ctextbox source={s}/> + <button onclick={v <- get s; alert (show (readError v : time))}/> + <button onclick={v <- get s; case read v : option time of + None => alert "Invalid" + | Some tm => alert (show tm)}/> + </body></xml> |