summary refs log tree commit diff stats
path: root/tests/ecmas.nim
diff options
context:
space:
mode:
authorSimon Hafner <hafnersimon@gmail.com>2013-02-14 13:59:12 -0600
committerSimon Hafner <hafnersimon@gmail.com>2013-02-15 11:08:30 -0600
commit1785c6877ba0d5329c700e82b6ccf0e7a2e684b8 (patch)
tree27163aa70d6f24b1de82113b05dcf7db921e1b57 /tests/ecmas.nim
parent0f2aa053d9e9bcbe67238c498ed96f27c8d737db (diff)
downloadNim-1785c6877ba0d5329c700e82b6ccf0e7a2e684b8.tar.gz
EcmaScript => JS. Fixes #330
No one calls it EcmaScript anymore.
Diffstat (limited to 'tests/ecmas.nim')
-rwxr-xr-xtests/ecmas.nim24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/ecmas.nim b/tests/ecmas.nim
deleted file mode 100755
index 12ed71309..000000000
--- a/tests/ecmas.nim
+++ /dev/null
@@ -1,24 +0,0 @@
-discard """
-  cmd: "nimrod js --hints:on $# $#"
-"""
-
-# This file tests the ECMAScript generator
-
-import
-  dom, strutils
-
-# We need to declare the used elements here. This is annoying but
-# prevents any kind of typo:
-var
-  inputElement {.importc: "document.form1.input1", nodecl.}: ref TElement
-
-proc OnButtonClick() {.exportc.} =
-  let v = $inputElement.value
-  if v.allCharsInSet(whiteSpace):
-    echo "only whitespace, hu?"
-  else:
-    var x = parseInt(v)
-    echo x*x
-
-proc OnLoad() {.exportc.} = 
-  echo "Welcome! Please take your time to fill in this formular!"