mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38:11 +00:00
remove outdated test
This commit is contained in:
parent
83a6ea61c9
commit
df4057bd52
@ -468,31 +468,5 @@ describe('add node to end of timeline', function(){
|
|||||||
utils.pressKey(32);
|
utils.pressKey(32);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('adds node to end of timeline, with callback', function() {
|
|
||||||
var t = {
|
|
||||||
type: 'html-keyboard-response',
|
|
||||||
stimulus: 'foo',
|
|
||||||
on_finish: function(){
|
|
||||||
jsPsych.pauseExperiment();
|
|
||||||
jsPsych.addNodeToEndOfTimeline({
|
|
||||||
timeline: [{
|
|
||||||
type: 'html-keyboard-response',
|
|
||||||
stimulus: 'bar'
|
|
||||||
}]
|
|
||||||
}, jsPsych.resumeExperiment)
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
jsPsych.init({
|
|
||||||
timeline: [t]
|
|
||||||
});
|
|
||||||
|
|
||||||
expect(jsPsych.getDisplayElement().innerHTML).toMatch('foo');
|
|
||||||
utils.pressKey(32);
|
|
||||||
expect(jsPsych.getDisplayElement().innerHTML).toMatch('bar');
|
|
||||||
utils.pressKey(32);
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user