mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Define "isnot()" for script test.
This commit is contained in:
parent
fc9fdf30a6
commit
75b83e38db
1 changed files with 6 additions and 0 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue