Define "isnot()" for script test.

This commit is contained in:
Tetsuharu OHZEKI 2013-10-03 05:45:12 -07:00
parent fc9fdf30a6
commit 75b83e38db

View file

@ -13,6 +13,12 @@ function is(a, b, c) {
f(a + " == " + b, m); f(a + " == " + b, m);
} }
function isnot(a, b, c) {
let f = (a != b) ? _pass : _fail;
let m = !c ? "" : c;
f(a + " != " + b, m);
}
var _test_complete = false; var _test_complete = false;
var _test_timeout = 10000; //10 seconds var _test_timeout = 10000; //10 seconds
function finish() { function finish() {