bootstrap3.js 796 B

123456789101112131415161718192021222324252627282930313233
  1. describe('bootstrap3 theme', function() {
  2. pushOptions({ themeSystem: 'bootstrap3' })
  3. describe('glyphicons', function() {
  4. pushOptions({
  5. header: { left: '', center: '', right: 'next' }
  6. })
  7. it('renders default', function() {
  8. initCalendar()
  9. expect($('.glyphicon')).toHaveClass('glyphicon-chevron-right')
  10. })
  11. it('renders a customized icon', function() {
  12. initCalendar({
  13. bootstrapGlyphicons: {
  14. next: 'asdf'
  15. }
  16. })
  17. expect($('.glyphicon')).toHaveClass('glyphicon-asdf')
  18. })
  19. it('renders text when specified as false', function() {
  20. initCalendar({
  21. bootstrapGlyphicons: false
  22. })
  23. expect($('.glyphicon')).not.toBeInDOM()
  24. expect($('.fc-next-button')).toHaveText('next')
  25. })
  26. })
  27. })