added tests so we can easily run QUnit tests in headless mode inside a stand alone JUnit test without Selenium; with just Rhino. JsArrayTest works great in Rhino stand alone and in a browser; but not Selenium; not sure why yet...

This commit is contained in:
James Strachan
2012-07-05 21:40:06 +01:00
parent 6e3346c019
commit 33ef414f01
16 changed files with 461 additions and 18 deletions
+17
View File
@@ -0,0 +1,17 @@
package jstest
fun testSize(): Int {
val a1 = array<String>()
val a2 = array("foo")
val a3 = array("foo", "bar")
return a1.size + a2.size + a3.size
}
fun testToListToString(): String {
val a1 = array<String>()
val a2 = array("foo")
val a3 = array("foo", "bar")
return a1.toList().toString() + "-" + a2.toList().toString() + "-" + a3.toList().toString()
}