Sha256: 973f0d2e9739b332f033825e0ceb60d3bde5c3ab405f38e60d730afaa8e882f9
Contents?: true
Size: 1019 Bytes
Versions: 2
Compression:
Stored size: 1019 Bytes
Contents
require '/assets/mercury.js' describe "Mercury.dialogHandlers.snippetPanel", -> template 'mercury/dialogs/snippetpanel.html' beforeEach -> @dialog = {element: $('#test'), button: $('#button')} Mercury.dialogHandlers.snippetPanel.call(@dialog) describe "filter", -> it "filters on keypress", -> $('#filter').val('foo') jasmine.simulate.keyup($('#filter').get(0)) expect($('#first').css('display')).toNotEqual('none') expect($('#second').css('display')).toEqual('none') $('#filter').val('b') jasmine.simulate.keyup($('#filter').get(0)) expect($('#first').css('display')).toNotEqual('none') expect($('#second').css('display')).toNotEqual('none') $('#filter').val('baz') jasmine.simulate.keyup($('#filter').get(0)) expect($('#first').css('display')).toEqual('none') expect($('#second').css('display')).toNotEqual('none') describe "dragging an image with a data-snippet attribute", -> it "sets the active snippet", ->
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mercury-rails-0.2.3 | spec/javascripts/mercury/dialogs/snippetpanel_spec.js.coffee |
mercury-rails-0.2.0 | spec/javascripts/mercury/dialogs/snippetpanel_spec.js.coffee |