Sha256: a24cc6f01b50ed717cada74fd125311492e0b32aa022b15a470015c917483b52

Contents?: true

Size: 591 Bytes

Versions: 4

Compression:

Stored size: 591 Bytes

Contents

Ext.apply window, (->
  throwIfNotFound = (cmp) ->
    throw new Error(cmp + " not found") if Ext.isString(cmp)

  expectToSee: (cmp) ->
    throwIfNotFound(cmp)
    expect(Ext.isObject(cmp) || Ext.isElement(cmp)).to.be.ok()

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

  expectDisabled: (cmp) ->
    throwIfNotFound(cmp)
    expect(cmp.isDisabled()).to.be(true)

  expectEnabled: (cmp) ->
    throwIfNotFound(cmp)
    expect(cmp.isDisabled()).to.be(false)

  expectInvisibleBodyOf: (cmp) ->
    throwIfNotFound(cmp)
    expect(cmp.body.isVisible()).to.be false
  )()

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
netzke-testing-6.5.0.0 app/assets/javascripts/netzke/testing/helpers/expectations.js.coffee
netzke-testing-6.5.0.0.rc1 app/assets/javascripts/netzke/testing/helpers/expectations.js.coffee
netzke-testing-1.0.1.0 app/assets/javascripts/netzke/testing/helpers/expectations.js.coffee
netzke-testing-1.0.0.0 app/assets/javascripts/netzke/testing/helpers/expectations.js.coffee