Documentation ¶
Index ¶
- func AsyncTest(name string, testFn func() interface{}) *js.Object
- func AsyncTestExpected(name string, expected interface{}, testFn func() interface{}) *js.Object
- func Begin(callbackFn func() interface{}) *js.Object
- func Done(callbackFn func(details DoneCallbackObject) interface{}) *js.Object
- func Equiv(a interface{}, b interface{}) *js.Object
- func Expect(amount int) *js.Object
- func Log(callbackFn func(details LogCallbackObject) interface{}) *js.Object
- func Module(name string) *js.Object
- func ModuleDone(callbackFn func(details ModuleDoneCallbackObject) interface{}) *js.Object
- func ModuleLifecycle(name string, lc Lifecycle) *js.Object
- func ModuleStart(callbackFn func(name string) interface{}) *js.Object
- func Ok(state interface{}, message string) *js.Object
- func Push(result interface{}, actual interface{}, expected interface{}, message string) *js.Object
- func Reset() *js.Object
- func Start() *js.Object
- func StartDecrement(decrement int) *js.Object
- func Stop() *js.Object
- func StopIncrement(increment int) *js.Object
- func Test(name string, testFn func(QUnitAssert))
- func TestDone(callbackFn func(details TestDoneCallbackObject) interface{}) *js.Object
- func TestExpected(title string, expected int, testFn func(assert QUnitAssert) interface{}) *js.Object
- func TestStart(callbackFn func(details TestStartCallbackObject) interface{}) *js.Object
- type DoneCallbackObject
- type Lifecycle
- type LogCallbackObject
- type ModuleDoneCallbackObject
- type ModuleStartCallbackObject
- type QUnitAssert
- func (qa QUnitAssert) Async() func()
- func (qa QUnitAssert) DeepEqual(actual interface{}, expected interface{}, message string) bool
- func (qa QUnitAssert) Equal(actual interface{}, expected interface{}, message string) bool
- func (qa QUnitAssert) NotDeepEqual(actual interface{}, expected interface{}, message string) bool
- func (qa QUnitAssert) NotEqual(actual interface{}, expected interface{}, message string) bool
- func (qa QUnitAssert) NotPropEqual(actual interface{}, expected interface{}, message string) bool
- func (qa QUnitAssert) NotStrictEqual(actual interface{}, expected interface{}, message string) bool
- func (qa QUnitAssert) Ok(state interface{}, message string) bool
- func (qa QUnitAssert) PropEqual(actual interface{}, expected interface{}, message string) bool
- func (qa QUnitAssert) StrictEqual(actual interface{}, expected interface{}, message string) bool
- func (qa QUnitAssert) Throws(block func() interface{}, message string) *js.Object
- func (qa QUnitAssert) ThrowsExpected(block func() interface{}, expected interface{}, message string) *js.Object
- type Raises
- type TestDoneCallbackObject
- type TestStartCallbackObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsyncTestExpected ¶
func Done ¶
func Done(callbackFn func(details DoneCallbackObject) interface{}) *js.Object
func Log ¶
func Log(callbackFn func(details LogCallbackObject) interface{}) *js.Object
func ModuleDone ¶
func ModuleDone(callbackFn func(details ModuleDoneCallbackObject) interface{}) *js.Object
func ModuleStart ¶
func StartDecrement ¶
func StopIncrement ¶
func TestDone ¶
func TestDone(callbackFn func(details TestDoneCallbackObject) interface{}) *js.Object
func TestExpected ¶
func TestExpected(title string, expected int, testFn func(assert QUnitAssert) interface{}) *js.Object
func TestStart ¶
func TestStart(callbackFn func(details TestStartCallbackObject) interface{}) *js.Object
Types ¶
type DoneCallbackObject ¶
type LogCallbackObject ¶
type QUnitAssert ¶
func (QUnitAssert) Async ¶
func (qa QUnitAssert) Async() func()
func (QUnitAssert) DeepEqual ¶
func (qa QUnitAssert) DeepEqual(actual interface{}, expected interface{}, message string) bool
func (QUnitAssert) Equal ¶
func (qa QUnitAssert) Equal(actual interface{}, expected interface{}, message string) bool
func (QUnitAssert) NotDeepEqual ¶
func (qa QUnitAssert) NotDeepEqual(actual interface{}, expected interface{}, message string) bool
func (QUnitAssert) NotEqual ¶
func (qa QUnitAssert) NotEqual(actual interface{}, expected interface{}, message string) bool
func (QUnitAssert) NotPropEqual ¶
func (qa QUnitAssert) NotPropEqual(actual interface{}, expected interface{}, message string) bool
func (QUnitAssert) NotStrictEqual ¶
func (qa QUnitAssert) NotStrictEqual(actual interface{}, expected interface{}, message string) bool
func (QUnitAssert) Ok ¶
func (qa QUnitAssert) Ok(state interface{}, message string) bool
func (QUnitAssert) PropEqual ¶
func (qa QUnitAssert) PropEqual(actual interface{}, expected interface{}, message string) bool
func (QUnitAssert) StrictEqual ¶
func (qa QUnitAssert) StrictEqual(actual interface{}, expected interface{}, message string) bool
func (QUnitAssert) Throws ¶
func (qa QUnitAssert) Throws(block func() interface{}, message string) *js.Object
func (QUnitAssert) ThrowsExpected ¶
func (qa QUnitAssert) ThrowsExpected(block func() interface{}, expected interface{}, message string) *js.Object
type TestDoneCallbackObject ¶
type TestStartCallbackObject ¶
Click to show internal directories.
Click to hide internal directories.