summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-12-30 16:11:29 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-12-30 16:11:29 -0500
commit0db3fba5d2b9b5c0dbd8468a76b2ef75ebe40437 (patch)
treee3d1b2cd22b111820c56581ec871c24bd1087856
parent60eda55ff1c5d68bb6b4d1ea49f22ccede87d22e (diff)
Double-bind works
-rw-r--r--tests/reactive5.ur9
-rw-r--r--tests/reactive5.urp3
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/reactive5.ur b/tests/reactive5.ur
new file mode 100644
index 00000000..01c63eae
--- /dev/null
+++ b/tests/reactive5.ur
@@ -0,0 +1,9 @@
+fun main () : transaction page =
+ x <- source <xml>A</xml>;
+ y <- source <xml>B</xml>;
+ return <xml><body>
+ <dyn signal={x <- signal x; y <- signal y; return <xml>{x}, {y}</xml>}/>
+ <br/>
+ <a onclick={set x <xml>C</xml>}>Change x</a><br/>
+ <a onclick={set y <xml>D</xml>}>Change y</a><br/>
+ </body></xml>
diff --git a/tests/reactive5.urp b/tests/reactive5.urp
new file mode 100644
index 00000000..27231d3d
--- /dev/null
+++ b/tests/reactive5.urp
@@ -0,0 +1,3 @@
+debug
+
+reactive5