general-tests.js revision 01963073c8af249173f8f9ffb0c602200e507ca0
'test: resume without wait': function() {
this.resume(function() {
//Nothing
});
},
'test: wait without function': function() {
this.wait(100);
},
_should: {
error: {
'test: resume without wait': true,
},
fail: {
'test: wait without function': true
}
}
}));
'test: suite with no name': function() {
},
'test: case with no name': function() {
}
}));
name: 'General Asserts',
'test: asserts': function() {
Assert.areNotEqual(true, false);
Y.assert(true);
},
'test: asserts fail areNotEqual': function() {
Assert.areNotEqual(true, true);
},
'test: asserts fail areNotSame': function() {
},
'test: asserts fail isFalse': function() {
},
'test: asserts fail isTrue': function() {
},
'test: asserts fail isNaN': function() {
},
'test: asserts fail isNotNaN': function() {
},
'test: asserts fail isNull': function() {
},
'test: asserts fail isNotNull': function() {
},
'test: asserts fail isUndefined': function() {
Assert.isUndefined(false);
},
'test: asserts fail isNotUndefined': function() {
},
'test: asserts fail isArray': function() {
},
'test: asserts fail isInstanceOf': function() {
},
'test: asserts fail isTypeOf': function() {
},
'test: Y.assert fail': function() {
Y.assert(false);
},
_should: {
fail: {
'test: asserts fail areNotEqual': true,
'test: asserts fail areNotSame': true,
'test: asserts fail isFalse': true,
'test: asserts fail isTrue': true,
'test: asserts fail isNaN': true,
'test: asserts fail isNotNaN': true,
'test: asserts fail isNull': true,
'test: asserts fail isNotNull': true,
'test: asserts fail isUndefined': true,
'test: asserts fail isNotUndefined': true,
'test: asserts fail isArray': true,
'test: asserts fail isInstanceOf': true,
'test: asserts fail isTypeOf': true,
'test: Y.assert fail': true
}
}
}));
var DateAssert = Y.DateAssert;
name: 'Date Tests',
'test: datesAreEqual()': function() {
},
'test: datesAreEqual() fail': function() {
var date1 = new Date();
},
'test: timesAreEqual()': function() {
},
'test: timesAreEqual() fail': function() {
var date1 = new Date('01/01/1999 16:16:16');
},
_should: {
fail: {
'test: datesAreEqual() fail': true,
'test: timesAreEqual() fail': true
}
}
}));
name: 'Runner Tests',
'test: logging': function() {
},
'test: set name': function() {
var setName = 'YUI Test Suite',
},
'test: ignore': function() {
},
},
_should: {
ignore: {
'test: ignore': true
}
}
}));
});