mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +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);
|
||||
}
|
||||
|
||||
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_timeout = 10000; //10 seconds
|
||||
function finish() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue