summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-12-30 16:08:25 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-12-30 16:08:25 -0500
commit7f3851104f9fdefdd09d8e9a0f600968175589e0 (patch)
tree885bf20f7b2d9dd0cbd857401b5fc833ba27c32d /tests
parentbe73a31fb83c7da398322f6e92e94a7297212b7c (diff)
Propagating a change through a bind
Diffstat (limited to 'tests')
-rw-r--r--tests/reactive4.ur7
-rw-r--r--tests/reactive4.urp3
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/reactive4.ur b/tests/reactive4.ur
new file mode 100644
index 00000000..b5278a63
--- /dev/null
+++ b/tests/reactive4.ur
@@ -0,0 +1,7 @@
+fun main () : transaction page =
+ x <- source <xml>TEST</xml>;
+ return <xml><body>
+ <dyn signal={y <- signal x; return <xml>!{y}?</xml>}/>
+ <br/>
+ <a onclick={set x <xml>CHANGEUP</xml>}>Oh My</a>
+ </body></xml>
diff --git a/tests/reactive4.urp b/tests/reactive4.urp
new file mode 100644
index 00000000..e32cf7a7
--- /dev/null
+++ b/tests/reactive4.urp
@@ -0,0 +1,3 @@
+debug
+
+reactive4