mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1154679
- Part 3: Remove is_loosely; r=Ms2ger
This commit is contained in:
parent
f03955ed19
commit
217ba006c7
@ -26,7 +26,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=8675309
|
||||
|
||||
/** Test for Bug 8675309 **/
|
||||
|
||||
is_loosely(1, "1", "sanity check");
|
||||
ok(true, "sanity check");
|
||||
|
||||
|
||||
|
@ -22,15 +22,11 @@
|
||||
|
||||
/** Test for sanity **/
|
||||
ok(true, "true must be ok");
|
||||
is_loosely(1, true, "1 must loosely be true");
|
||||
isnot(1, true, "1 must not be true");
|
||||
isnot(1, false, "1 must not be false");
|
||||
is_loosely(0, false, "0 must loosely be false");
|
||||
isnot(0, false, "0 must not be false");
|
||||
isnot(0, true, "0 must not be true");
|
||||
is_loosely("", 0, "Empty string must loosely be 0");
|
||||
isnot("", 0, "Empty string must not be 0");
|
||||
is_loosely("1", 1, "Numeric string must loosely equal the number");
|
||||
isnot("1", 1, "Numeric string must not equal the number");
|
||||
isnot("", null, "Empty string must not be null");
|
||||
isnot(undefined, null, "Undefined must not be null");
|
||||
|
@ -291,15 +291,6 @@ SimpleTest.isnot = function (a, b, name) {
|
||||
SimpleTest.ok(pass, name, diag);
|
||||
};
|
||||
|
||||
/**
|
||||
* Roughly equivalent to ok(a==b, name)
|
||||
**/
|
||||
SimpleTest.is_loosely = function (a, b, name) {
|
||||
var pass = (a == b);
|
||||
var diag = pass ? "" : "got " + repr(a) + ", expected " + repr(b)
|
||||
SimpleTest.ok(pass, name, diag);
|
||||
};
|
||||
|
||||
/**
|
||||
* Check that the function call throws an exception.
|
||||
*/
|
||||
@ -1454,7 +1445,6 @@ var is = SimpleTest.is;
|
||||
var isfuzzy = SimpleTest.isfuzzy;
|
||||
var isnot = SimpleTest.isnot;
|
||||
var ise = SimpleTest.ise;
|
||||
var is_loosely = SimpleTest.is_loosely;
|
||||
var todo = SimpleTest.todo;
|
||||
var todo_is = SimpleTest.todo_is;
|
||||
var todo_isnot = SimpleTest.todo_isnot;
|
||||
|
Loading…
Reference in New Issue
Block a user