(msg, val, type)
| 24 | description("KDE JS Test"); |
| 25 | // We can't use normal shouldBe here, since they'd eval in the wrong context... |
| 26 | function shouldBeOfType(msg, val, type) { |
| 27 | if (typeof(val) != type) |
| 28 | testFailed(msg + ": value has type " + typeof(val) + " , not:" + type); |
| 29 | else |
| 30 | testPassed(msg); |
| 31 | } |
| 32 | |
| 33 | function shouldBeVal(msg, val, expected) { |
| 34 | if (val != expected) |