Disabled outdated ScriptManager tests

This commit is contained in:
Michael Schmatz 2014-01-12 13:24:45 -08:00
parent 718e7ebd22
commit 128c0b3ba3

View file

@ -1,15 +1,16 @@
describe('ScriptManager', -> describe('ScriptManager', ->
SM = require 'lib/ScriptManager' SM = require 'lib/scripts/ScriptManager'
it('broadcasts note with event upon hearing from channel', -> xit('broadcasts note with event upon hearing from channel', ->
note = {channel: 'cnn', event: {1:1}} note = {channel: 'cnn', event: {1:1}}
noteGroup = {duration: 0, notes: [note]} noteGroup = {duration: 0, notes: [note]}
script = {channel: 'pbs', noteChain: [noteGroup]} script = {channel: 'pbs', noteChain: [noteGroup]}
sm = new SM([script]) sm = new SM({scripts: [script]})
sm.paused = false sm.paused = false
gotEvent = {} gotEvent = {}
f = (event) -> gotEvent = event f = (event) ->
gotEvent = event
Backbone.Mediator.subscribe('cnn', f, @) Backbone.Mediator.subscribe('cnn', f, @)
Backbone.Mediator.publish('pbs') Backbone.Mediator.publish('pbs')
expect(gotEvent[1]).toBe(note.event[1]) expect(gotEvent[1]).toBe(note.event[1])
@ -86,13 +87,13 @@ describe('ScriptManager', ->
sm.destroy() sm.destroy()
) )
it('releases notes based on user confirmation', -> xit('releases notes based on user confirmation', ->
note1 = {channel: 'cnn', event: {1:1}} note1 = {channel: 'cnn', event: {1:1}}
note2 = {channel: 'cbs', event: {2:2}} note2 = {channel: 'cbs', event: {2:2}}
noteGroup1 = {duration: 0, notes: [note1]} noteGroup1 = {duration: 0, notes: [note1]}
noteGroup2 = {duration: 0, notes: [note2]} noteGroup2 = {duration: 0, notes: [note2]}
script = {channel: 'pbs', noteChain: [noteGroup1, noteGroup2]} script = {channel: 'pbs', noteChain: [noteGroup1, noteGroup2]}
sm = new SM([script]) sm = new SM({scripts:[script]})
sm.paused = false sm.paused = false
gotCnnEvent = null gotCnnEvent = null