Sha256: 245bdb80a48328cb98ba93e44aefa5d7b12501e0cc9dfae9dcf659e26fca3bf4

Contents?: true

Size: 590 Bytes

Versions: 3

Compression:

Stored size: 590 Bytes

Contents

Ext.apply window,
  expectToSee: (cmp) ->
    throw cmp + " not found" if Ext.isString(cmp)
    expect(Ext.isObject(cmp) || Ext.isElement(cmp)).to.be.ok()

  expectToNotSee: (el) ->
    expect(Ext.isString(el)).to.be.ok()

  expectDisabled: (cmp) ->
    throw cmp + " not found" if Ext.isString(cmp)
    expect(cmp.isDisabled()).to.be(true)

  expectEnabled: (cmp) ->
    throw cmp + " not found" if Ext.isString(cmp)
    expect(cmp.isDisabled()).to.be(false)

  expectInvisibleBodyOf: (cmp) ->
    throw cmp + " not found" if Ext.isString(cmp)
    expect(cmp.body.isVisible()).to.be false

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
netzke-testing-1.0.0.0.pre app/assets/javascripts/netzke/testing/helpers/expectations.js.coffee
netzke-testing-0.12.3 app/assets/javascripts/netzke/testing/helpers/expectations.js.coffee
netzke-testing-0.12.2 app/assets/javascripts/netzke/testing/helpers/expectations.js.coffee