     layer = new LayerAdapter({webGL:true})
     layer.buildAutomatically = false
     layer.buildAsync = false
-  
+
   it 'creates containers for animated actions if set to spriteType=segmented', ->
     ogreMunchkinThangType.set('spriteType', 'segmented')
     colorConfig = {team: {hue: 0, saturation: 1, lightness: 0.5}}

    sheet = layer.renderNewSpriteSheet()
    key = layer.renderGroupingKey(treeThangType, 'idle')
    expect(key in sheet.getAnimations()).toBe(true)
    
  it 'only renders frames used by actions when spriteType=singular', ->
    layer.defaultActions = ['idle'] # uses the move side animation
    ogreMunchkinThangType.set('spriteType', 'singular')
    colorConfig = {team: {hue: 0, saturation: 1, lightness: 0.5}}
    sprite = new Lank(ogreMunchkinThangType, {colorConfig: colorConfig})

    thangType.trigger('raster-image-loaded', thangType)
    expect(layer.numThingsLoading).toBe(0)
    expect(layer.renderNewSpriteSheet).toHaveBeenCalled()

  it 'renders a new SpriteSheet only once everything has loaded', ->
    bootsThangTypeData = require 'test/app/fixtures/leather-boots.thang.type'
    thangType1 = new ThangType({_id: 1})
