vendor/bower-asset/fullcalendar-scheduler/tests/automated/misc/license.js
// FYI: eventAfterAllRender guarantees that view's skeleton has been rendered and sized
eventAfterAllRender guarantees that view's skeleton has been rendered and sized
eventAfterAllRender guarantees that view ' s skeleton has been rendered and sized
function defineTests() {
    it('is invalid when crap text', function(done) {
      initCalendar({
        schedulerLicenseKey: '<%= versionReleaseDate %>',
        eventAfterAllRender() {
          expectIsValid(false)
          done()
        }
      })
    })
    it('is invalid when purchased more than a year ago', function(done) {
      initCalendar({
        schedulerLicenseKey: '1234567890-fcs-1273017600', 
        eventAfterAllRender() {
          expectIsValid(false)
          done()
        }
      })
    })
    it('is valid when purchased less than a year ago', function(done) {
      initCalendar({
        schedulerLicenseKey: '1234567890-fcs-1275868800', 
        eventAfterAllRender() {
          expectIsValid(true)
          done()
        }
      })
    })
    it('is invalid when not 10 digits in random ID', function(done) {
      initCalendar({
        schedulerLicenseKey: '123456789-fcs-1275868800', 
        eventAfterAllRender() {
          expectIsValid(false)
          done()
        }
      })
    })
    it('is valid when Creative Commons', function(done) {
      initCalendar({
        schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
        eventAfterAllRender() {
          expectIsValid(true)
          done()
        }
      })
    })
    it('is valid when GPL', function(done) {
      initCalendar({
        schedulerLicenseKey: 'GPL-My-Project-Is-Open-Source',
        eventAfterAllRender() {
          expectIsValid(true)
          done()
        }
      })
    })
  }
function defineTests ( ) { it ( 'is invalid when crap text' , function ( done ) { initCalendar ( { schedulerLicenseKey : '<%= versionReleaseDate %>' , eventAfterAllRender ( ) { expectIsValid ( false ) done ( ) } } ) } ) it ( 'is invalid when purchased more than a year ago' , function ( done ) { initCalendar ( { schedulerLicenseKey : '1234567890-fcs-1273017600' , eventAfterAllRender ( ) { expectIsValid ( false ) done ( ) } } ) } ) it ( 'is valid when purchased less than a year ago' , function ( done ) { initCalendar ( { schedulerLicenseKey : '1234567890-fcs-1275868800' , eventAfterAllRender ( ) { expectIsValid ( true ) done ( ) } } ) } ) it ( 'is invalid when not 10 digits in random ID' , function ( done ) { initCalendar ( { schedulerLicenseKey : '123456789-fcs-1275868800' , eventAfterAllRender ( ) { expectIsValid ( false ) done ( ) } } ) } ) it ( 'is valid when Creative Commons' , function ( done ) { initCalendar ( { schedulerLicenseKey : 'CC-Attribution-NonCommercial-NoDerivatives' , eventAfterAllRender ( ) { expectIsValid ( true ) done ( ) } } ) } ) it ( 'is valid when GPL' , function ( done ) { initCalendar ( { schedulerLicenseKey : 'GPL-My-Project-Is-Open-Source' , eventAfterAllRender ( ) { expectIsValid ( true ) done ( ) } } ) } ) }
FYI: eventAfterAllRender guarantees that view's skeleton has been rendered and sized
FYI : eventAfterAllRender guarantees that view ' s skeleton has been rendered and sized
// purchased on 2010-05-05 // purchased on 2010-06-07 // purchased on 2010-06-07