summary refs log tree commit diff stats
path: root/tests/js
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-12-17 01:43:36 +0100
committerAraq <rumpf_a@web.de>2014-12-17 01:43:36 +0100
commitc91cf3068f7d215ca8aaafed505b78f389a2885e (patch)
tree4f66944705bab8b5da2926be7a0a6cf6d50ac540 /tests/js
parent02cc9633ebe23d2b9c99254fad8b6c6abcb05e1e (diff)
downloadNim-c91cf3068f7d215ca8aaafed505b78f389a2885e.tar.gz
JS tests cleaned up
Diffstat (limited to 'tests/js')
-rw-r--r--tests/js/tbyvar.nim7
-rw-r--r--tests/js/test1.nim4
2 files changed, 6 insertions, 5 deletions
diff --git a/tests/js/tbyvar.nim b/tests/js/tbyvar.nim
index 5ed2de1da..1269e6f66 100644
--- a/tests/js/tbyvar.nim
+++ b/tests/js/tbyvar.nim
@@ -4,12 +4,13 @@ bar 12
 2
 foo 12
 bar 12
-2'''
+2
+'''
 """
 
 # bug #1489
-proc foo(x: int) = echo "foo: ", x
-proc bar(y: var int) = echo "bar: ", y
+proc foo(x: int) = echo "foo ", x
+proc bar(y: var int) = echo "bar ", y
 
 var x = 12
 foo(x)
diff --git a/tests/js/test1.nim b/tests/js/test1.nim
index 09ba30676..7f1d346f0 100644
--- a/tests/js/test1.nim
+++ b/tests/js/test1.nim
@@ -10,9 +10,9 @@ import
 var
   inputElement = "1123"
 
-proc OnButtonClick(inputElement: string) {.exportc.} =
+proc onButtonClick(inputElement: string) {.exportc.} =
   let v = $inputElement
-  if v.allCharsInSet(whiteSpace):
+  if v.allCharsInSet(WhiteSpace):
     echo "only whitespace, hu?"
   else:
     var x = parseInt(v)