Bug 1154679 - Part 3: Remove is_loosely; r=Ms2ger

This commit is contained in:
Ehsan Akhgari 2015-04-16 17:52:29 -04:00
parent f03955ed19
commit 217ba006c7
3 changed files with 0 additions and 15 deletions

View File

@ -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");

View File

@ -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");

View File

@ -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;