diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/js.html (renamed from tests/ecmas.html) | 6 | ||||
-rwxr-xr-x | tests/js.nim (renamed from tests/ecmas.nim) | 2 | ||||
-rw-r--r-- | tests/js/test1.nim | 2 | ||||
-rw-r--r-- | tests/js/tunittests.nim | 5 | ||||
-rwxr-xr-x | tests/tester.nim | 2 |
5 files changed, 11 insertions, 6 deletions
diff --git a/tests/ecmas.html b/tests/js.html index 2004387a1..81baef784 100755 --- a/tests/ecmas.html +++ b/tests/js.html @@ -5,14 +5,14 @@ <!-- This has been written by hand. (c) 2010 Andreas Rumpf --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<title>Nimrod ECMAScript Generator Test</title> +<title>Nimrod JavaScript Generator Test</title> <style type="text/css"> span.DecNumber {color: blue} </style> -<script src="nimcache/ecmas.js" type="text/javascript"></script> +<script src="nimcache/js.js" type="text/javascript"></script> </head> <body onload="OnLoad()"> -<form name="form1" action="ecmas.html"> +<form name="form1" action="js.html"> <input type="text" name="input1" size="10" /> <input type="button" value="Calculate square" onclick="OnButtonClick()" /> </form> diff --git a/tests/ecmas.nim b/tests/js.nim index 12ed71309..f31bb10d9 100755 --- a/tests/ecmas.nim +++ b/tests/js.nim @@ -2,7 +2,7 @@ discard """ cmd: "nimrod js --hints:on $# $#" """ -# This file tests the ECMAScript generator +# This file tests the JavaScript generator import dom, strutils diff --git a/tests/js/test1.nim b/tests/js/test1.nim index 012b98833..3f3d5f02c 100644 --- a/tests/js/test1.nim +++ b/tests/js/test1.nim @@ -3,7 +3,7 @@ discard """ output: "1261129" """ -# This file tests the ECMAScript generator +# This file tests the JavaScript generator import dom, strutils diff --git a/tests/js/tunittests.nim b/tests/js/tunittests.nim new file mode 100644 index 000000000..af38cd9b9 --- /dev/null +++ b/tests/js/tunittests.nim @@ -0,0 +1,5 @@ +import unittest + +suite "Bacon": + test ">:)": + check(true == true) diff --git a/tests/tester.nim b/tests/tester.nim index 60c84403e..2b60151a8 100755 --- a/tests/tester.nim +++ b/tests/tester.nim @@ -392,7 +392,7 @@ proc main() = of "compile": compile(r, "tests/compile/t*.nim", p.cmdLineRest.string) compile(r, "tests/ccg/t*.nim", p.cmdLineRest.string) - compile(r, "tests/ecmas.nim", p.cmdLineRest.string) + compile(r, "tests/js.nim", p.cmdLineRest.string) compileExample(r, "lib/pure/*.nim", p.cmdLineRest.string) compileExample(r, "examples/*.nim", p.cmdLineRest.string) compileExample(r, "examples/gtk/*.nim", p.cmdLineRest.string) |