summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-08-14 17:39:18 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2011-08-14 17:39:18 -0400
commitc58370c7b4a4cc6027baf7b6ebfcc1dcab181666 (patch)
treee5943aaf8f088e60d96a4c87d7228ec3c62c9593 /tests
parent882b016302da2645ff07ccaf9c78eaa60f736461 (diff)
Fix bug with <dyn> as first child of <table>
Diffstat (limited to 'tests')
-rw-r--r--tests/dynTable.ur21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/dynTable.ur b/tests/dynTable.ur
new file mode 100644
index 00000000..7fe295c6
--- /dev/null
+++ b/tests/dynTable.ur
@@ -0,0 +1,21 @@
+fun main () : transaction page =
+ s <- source <xml/>;
+ s1 <- source <xml/>;
+ n <- source 0;
+ return <xml><body>
+ <table>
+ <dyn signal={signal s}/>
+ <tr> <td>Hi</td> </tr>
+ </table>
+
+ <button onclick={v <- get n;
+ set n (v + 1);
+ set s <xml><tr> <td>Whoa!({[v]})</td> </tr></xml>}/>
+
+ <table>
+ <tr> <dyn signal={signal s1}/> </tr>
+ <tr> <td>Hi!</td> </tr>
+ </table>
+
+ <button onclick={set s1 <xml><td>Whoa!</td></xml>}/>
+ </body></xml>