summaryrefslogtreecommitdiff
path: root/tests/headDyn.ur
diff options
context:
space:
mode:
authorBenjamin Barenblat <bbaren@mit.edu>2017-07-23 09:50:04 -0400
committerBenjamin Barenblat <bbaren@mit.edu>2017-07-23 09:50:04 -0400
commit0cccdb0ae595cd7e3e136e984ac7b95b99f71a53 (patch)
tree491d3b13813610943c60460d3e178d3a73916346 /tests/headDyn.ur
Import urweb_20170720+dfsg.orig.tar.gz
[dgit import orig urweb_20170720+dfsg.orig.tar.gz]
Diffstat (limited to 'tests/headDyn.ur')
-rw-r--r--tests/headDyn.ur20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/headDyn.ur b/tests/headDyn.ur
new file mode 100644
index 0000000..02fb0e0
--- /dev/null
+++ b/tests/headDyn.ur
@@ -0,0 +1,20 @@
+fun main () : transaction page =
+ x <- source <xml/>;
+ return <xml>
+ <head>
+ <title>Test</title>
+ </head>
+ <body onload={set x <xml>boo</xml>}>
+ <dyn signal={signal x}/>
+ </body>
+ </xml>
+
+fun main2 () : transaction page =
+ return <xml>
+ <head>
+ <title>Test</title>
+ </head>
+ <body>
+ <button onclick={alert "Hi"}/>
+ </body>
+ </xml>