Side navigation
Ticket #3348: qunit.nullasserts.diff
File qunit.nullasserts.diff, 0.5 KB (added by sugendran, September 10, 2008 01:52AM UTC)
testrunner.js diff
Index: testrunner.js
===================================================================
--- testrunner.js (revision 5843)
+++ testrunner.js (working copy)
@@ -217,6 +217,20 @@
}
/**
+ * Asserts that the object is null.
+ */
+function isNull(a, msg){
+ _config.Test.push( [ a === null, msg ] );
+}
+
+/**
+ * Asserts that the object is not null.
+ */
+function notNull(a, msg){
+ _config.Test.push( [ a != null, msg ] );
+}
+
+/**
* Asserts that two arrays are the same
*/
function isSet(a, b, msg) {
Download in other formats:
Original Format
File qunit.nullasserts.diff, 0.5 KB (added by sugendran, September 10, 2008 01:52AM UTC)
testrunner.js diff
Index: testrunner.js
===================================================================
--- testrunner.js (revision 5843)
+++ testrunner.js (working copy)
@@ -217,6 +217,20 @@
}
/**
+ * Asserts that the object is null.
+ */
+function isNull(a, msg){
+ _config.Test.push( [ a === null, msg ] );
+}
+
+/**
+ * Asserts that the object is not null.
+ */
+function notNull(a, msg){
+ _config.Test.push( [ a != null, msg ] );
+}
+
+/**
* Asserts that two arrays are the same
*/
function isSet(a, b, msg) {