getAudio(id).settings.log()
(since beta 0.3)
Will add a line in the results file each time the tooltip is validated.
Example:
[js highlight=”7″]newAudio(“sentence”, “test_sentence.ogg”)
.settings.log()
.wait()
.print()
,
newTooltip(“instructions”, “Use this interface to replay the audio as many times as you want”)
.settings.log()
.print( getAudio(“sentence”) )
.wait()[/js]
Starts playing the audio file testsentence.ogg_ and, when it has finished playing, adds an interface to replay it at will onto the page and attaches a tooltip at its bottom-right corner. Since .settings.log
is called on both the audio and the tooltip, the results file can tell how long of a delay passed between the end of playback and the validation of the tooltip, and whether and how many times the audio was replayed before and after validating the tooltip.