bz wants isnot()

This commit is contained in:
sayrer%gmail.com 2006-11-11 05:10:46 +00:00
parent e56311e5dd
commit 82c1df0239
2 changed files with 8 additions and 2 deletions

View File

@ -40,6 +40,11 @@ SimpleTest.is = function (a, b, name) {
SimpleTest.ok(a == b, name, "got " + repr(a) + ", expected " + repr(b));
};
SimpleTest.isnot = function (a, b, name) {
var repr = MochiKit.Base.repr;
SimpleTest.ok(a != b, name, "Didn't expect " + repr(a) + ", but got it.");
};
// --------------- Test.Builder/Test.More todo() -----------------
SimpleTest.todo = function(condition, name, diag) {
@ -387,5 +392,6 @@ SimpleTest.isa = function (object, clas) {
// Global symbols:
var ok = SimpleTest.ok;
var is = SimpleTest.is;
var isnot = SimpleTest.isnot;
var todo = SimpleTest.todo;
var isDeeply = SimpleTest.isDeeply;

View File

@ -67,8 +67,8 @@ RunSet.runall = function() {
'test_bug337631.html',
'test_bug338541.xhtml',
'test_bug338679.html',
'test_bug339494.html'
'test_bug339494.xhtml'
'test_bug339494.html',
'test_bug339494.xhtml',
'test_bug339494.xul',
'test_bug339350.xhtml',
'test_bug340800.html',