diff options
Diffstat (limited to 'tests/ecmas.nim')
-rwxr-xr-x | tests/ecmas.nim | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/ecmas.nim b/tests/ecmas.nim deleted file mode 100755 index 59e7ae1e8..000000000 --- a/tests/ecmas.nim +++ /dev/null @@ -1,16 +0,0 @@ -# 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.input", nodecl.}: ref TElement - -proc OnButtonClick() {.exportc.} = - var x: int = parseInt($inputElement.value) - echo($(x * x)) - -proc OnLoad() {.exportc.} = - echo("Welcome! Please take your time to fill in this formular!") |