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:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user