summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/jscomp.ur10
-rw-r--r--tests/jscomp.urp3
-rw-r--r--tests/jscomp.urs1
3 files changed, 14 insertions, 0 deletions
diff --git a/tests/jscomp.ur b/tests/jscomp.ur
new file mode 100644
index 00000000..a11c0088
--- /dev/null
+++ b/tests/jscomp.ur
@@ -0,0 +1,10 @@
+fun main () =
+ s <- source "";
+
+ return <xml><body>
+ <ctextbox source={s}/><br/>
+
+ <button value="Echo" onclick={s <- get s; alert s}/>
+ <button value="+1" onclick={s <- get s; alert (show (readError s + 1))}/>
+ <button value="*3" onclick={s <- get s; alert (show ((readError s) * 3))}/>
+ </body></xml>
diff --git a/tests/jscomp.urp b/tests/jscomp.urp
new file mode 100644
index 00000000..ac207143
--- /dev/null
+++ b/tests/jscomp.urp
@@ -0,0 +1,3 @@
+debug
+
+jscomp
diff --git a/tests/jscomp.urs b/tests/jscomp.urs
new file mode 100644
index 00000000..6ac44e0b
--- /dev/null
+++ b/tests/jscomp.urs
@@ -0,0 +1 @@
+val main : unit -> transaction page