Home Reference Source Test Repository

Test

Description Identifier Count

should have a ElectroPhone function

-

should create a ElectroPhone instance

ElectroPhone#constructor

should have a isPlaying property

ElectroPhone#isPlaying

should have a method to get modules

ElectroPhone#getModules

should have master and adsr modules created

ElectroPhone#defaultModules

should have a create method to add new module

ElectroPhone#create

should fail if try to create an existing module

ElectroPhone#create

should have a update method to update a module

ElectroPhone#update

should fail if try to update a module that doesn't exist

ElectroPhone#update

should have a master method to update the master module

ElectroPhone#master

should have a adsr method to update the adsr module

ElectroPhone#adsr

should have a destroy method to destroy a module

ElectroPhone#destroy

should fail if try to destroy a module that doesn't exist

ElectroPhone#destroy

should have a play method that doesn't start if no frequency given

ElectroPhone#play

should have a play method that start playing given frequency

ElectroPhone#play

should have a stop method that doesn't stop if no frequency given

ElectroPhone#stop

should have a stop method that stop playing given frequency

ElectroPhone#stop

should have a link method to link two modules

ElectroPhone#link

should fail if try to link the master module to anything

ElectroPhone#link

should fail if try to link a source that doesn't exist

ElectroPhone#link

should fail if try to link a source to a target that doesn't exist

ElectroPhone#link

should have a static getModuleProperties method to get module properties by type

ElectroPhone#getModuleProperties

should have a static describeModules method to describe all ElectroPhone modules with properties

ElectroPhone#describeModules

should have a static getFrequency method to calculate frequency value from note and octave

ElectroPhone#getFrequency

should have a static getNotes method to get notes list

ElectroPhone#getFrequency