Currently, JS shouldBe() tests don't work with NaN results, because NaN != NaN. Patch forthcoming.
Created attachment 13468 [details] proposed patch
Looks fine, though what is the "===" operator? (you didn't add it - just wondering though...) - else if (_av === _bv) + else if (_av === _bv || (typeof(_av) == "number" && typeof(_bv) == "number" && isNaN(_av) && isNaN(_bv))) Niko
(In reply to comment #2) > Looks fine, though what is the "===" operator? (you didn't add it - just > wondering though...) It's the identity (strict equality) operator. There is also a "not identity" operator: !== http://www.webreference.com/js/tips/991205.html
Comment on attachment 13468 [details] proposed patch r=me
Committed revision 19959.