Mercurial > urweb
diff tests/autocomp.ur @ 1491:b2ca3e1e5b40
Fixes for detecting pastes and autocompletes for dynamic textboxes
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Fri, 15 Jul 2011 10:02:54 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/autocomp.ur Fri Jul 15 10:02:54 2011 -0400 @@ -0,0 +1,11 @@ +fun main () : transaction page = + a <- source ""; + b <- source ""; + return <xml><body> + <form> + <textbox{#A} source={a}/> + <button onclick={x <- get a; set b x}/> + <dyn signal={v <- signal a; return <xml>{[v]}</xml>}/> + / <dyn signal={v <- signal b; return <xml>{[v]}</xml>}/> + </form> + </body></xml>