Last active
December 15, 2015 17:09
-
-
Save davidvanleeuwen/5293941 to your computer and use it in GitHub Desktop.
Describe all functionality
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'Backbone.Modal', -> | |
it "should have Backbone defined", -> | |
it 'should throw an exception if there is no template or views present', -> | |
it 'should throw an exception if a template and views are defined and | |
no viewContainer is present', -> | |
describe 'views:', -> | |
it 'binds the event to the selector to open a view', -> | |
it "checks if it's a Backbone.View or just a HTML template that is | |
passed along", -> | |
describe '#openAt', -> | |
it 'opens a view at the specified index', -> | |
describe '#render', -> | |
it 'renders the modal and internal views', -> | |
describe '#beforeCancel', -> | |
it "calls this method when it's defined", -> | |
it 'stops the cancel when it returns false', -> | |
describe '#cancel', -> | |
it 'calls cancel when cancelEl is triggered or ESC is pressed' | |
describe '#beforeSubmit', -> | |
describe '#submit', -> | |
it 'calls submit when submitEl is triggered or ENTER is pressed' | |
describe 'when the modal switches between a view', -> | |
it 'animates between views', -> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment