summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-06-13 14:29:36 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-06-13 14:29:36 -0400
commitba3e01e524907d85f5cba6af62083fcdee606f33 (patch)
tree1f400f83f20ef1f54d68e1e7b674a08f29abb4d4 /tests
parentb7de8e9ac590f9d06df72d22489375b33a6efef9 (diff)
<dyn> inside <table>; fix Specialize bug with datatype decls generating other mutually-recursive datatype decls
Diffstat (limited to 'tests')
-rw-r--r--tests/tbody.ur13
-rw-r--r--tests/tbody.urp4
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/tbody.ur b/tests/tbody.ur
new file mode 100644
index 00000000..53bc0296
--- /dev/null
+++ b/tests/tbody.ur
@@ -0,0 +1,13 @@
+fun main () : transaction page =
+ s <- source [];
+ entry <- source "";
+ return <xml><body>
+ <table>
+ <dyn signal={s <- signal s;
+ return (List.mapX (fn s => <xml><tr><td>{[s]}</td></tr></xml>) s)}/>
+ </table>
+
+ Add one: <ctextbox source={entry}/> <button onclick={e <- get entry;
+ v <- get s;
+ set s (e :: v)}/>
+ </body></xml>
diff --git a/tests/tbody.urp b/tests/tbody.urp
new file mode 100644
index 00000000..4a264fbb
--- /dev/null
+++ b/tests/tbody.urp
@@ -0,0 +1,4 @@
+debug
+
+$/list
+tbody