- //for IDE code completion
- //JsTestDriver assert
- this.fail = this.fail || function () {};
- this.assert = this.assert || function (actual) {};
- this.assertTrue = this.assertTrue || function (actual) {};
- this.assertFalse = this.assertFalse || function (actual) {};
- this.assertEquals = this.assertEquals || function (expected, actual) {};
- this.assertNotEquals = this.assertNotEquals || function (expected, actual) {};
- this.assertSame = this.assertSame || function (expected, actual) {};
- this.assertNotSame = this.assertNotSame || function (expected, actual) {};
- this.assertNull = this.assertNull || function (actual) {};
- this.assertNotNull = this.assertNotNull || function (actual) {};
- this.assertUndefined = this.assertUndefined || function (actual) {};
- this.assertNotUndefined = this.assertNotUndefined || function (actual) {};
- this.assertNaN = this.assertNaN || function (actual) {};
- this.assertNotNaN = this.assertNotNaN || function (actual) {};
- this.assertException = this.assertException || function (callback, error) {};
- this.assertNoException = this.assertNoException || function (callback) {};
- this.assertArray = this.assertArray || function (actual) {};
- this.assertTypeOf = this.assertTypeOf || function (expected, value) {};
- this.assertBoolean = this.assertBoolean || function (actual) {};
- this.assertFunction = this.assertFunction || function (actual) {};
- this.assertObject = this.assertObject || function (actual) {};
- this.assertNumber = this.assertNumber || function (actual) {};
- this.assertString = this.assertString || function (actual) {};
- this.assertMatch = this.assertMatch || function (regexp, actual) {};
- this.assertNoMatch = this.assertNoMatch || function (regexp, actual) {};
- this.assertTagName = this.assertTagName || function (tagName, element) {};
- this.assertClassName = this.assertClassName || function (className, element) {};
- this.assertElementId = this.assertElementId || function (id, element) {};
- this.assertInstanceOf = this.assertInstanceOf || function (constructor, actual) {};
- this.assertNotInstanceOf = this.assertNotInstanceOf || function (constructor, actual) {};
- //SinonJS assert(sinon.assert.expose(this, {'includeFail' : false}); version)
- this.assertCalled = this.assertCalled || function (spy) {};
- this.assertNotCalled = this.assertNotCalled || function (spy) {};
- this.assertCalledOnce = this.assertCalledOnce || function (spy) {};
- this.assertCalledTwice = this.assertCalledTwice || function (spy) {};
- this.assertCalledThrice = this.assertCalledThrice || function (spy) {};
- this.assertCalledCount = this.assertCalledCount || function (spy, num) {};
- this.assertCalledOrder = this.assertCalledOrder || function (spy1, spy2 /* ... */) {};
- this.assertAlwaysCalledOn = this.assertAlwaysCalledOn || function (spy, obj) {};
- this.assertCalledOn = this.assertCalledOn || function (spy, obj) {};
- this.assertCalledWith = this.assertCalledWith || function (spy, arg1, arg2/*...*/) {};
- this.assertAlwaysCalledWith = this.assertAlwaysCalledWith || function (spy, arg1, arg2/*...*/) {};
- this.assertNeverCalledWith = this.assertNeverCalledWith || function (spy, arg1, arg2/*...*/) {};
- this.assertCalledWithExactly = this.assertCalledWithExactly || function (spy, arg1, arg2/*...*/) {};
- this.assertAlwaysCalledWithExactly = this.assertAlwaysCalledWithExactly || function (spy, arg1, arg2/*...*/) {};
- this.assertThrew = this.assertThrew || function (spy, exception) {};
- this.assertAlwaysThrew = this.assertAlwaysThrew || function (spy, exception) {};