mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38:11 +00:00
fix SRT test
This commit is contained in:
parent
08a3166cc6
commit
ff28393a88
@ -29,11 +29,11 @@ describe('serial-reaction-time-mouse plugin', function(){
|
|||||||
expect(document.querySelector('#jspsych-serial-reaction-time-stimulus-cell-0-2').style.backgroundColor).toBe('');
|
expect(document.querySelector('#jspsych-serial-reaction-time-stimulus-cell-0-2').style.backgroundColor).toBe('');
|
||||||
expect(document.querySelector('#jspsych-serial-reaction-time-stimulus-cell-0-3').style.backgroundColor).toBe('');
|
expect(document.querySelector('#jspsych-serial-reaction-time-stimulus-cell-0-3').style.backgroundColor).toBe('');
|
||||||
|
|
||||||
utils.clickTarget(document.querySelector('#jspsych-serial-reaction-time-stimulus-cell-0-1'));
|
utils.mouseDownMouseUpTarget(document.querySelector('#jspsych-serial-reaction-time-stimulus-cell-0-1'));
|
||||||
|
|
||||||
expect(jsPsych.getDisplayElement().innerHTML).not.toBe('');
|
expect(jsPsych.getDisplayElement().innerHTML).not.toBe('');
|
||||||
|
|
||||||
utils.clickTarget(document.querySelector('#jspsych-serial-reaction-time-stimulus-cell-0-0'));
|
utils.mouseDownMouseUpTarget(document.querySelector('#jspsych-serial-reaction-time-stimulus-cell-0-0'));
|
||||||
|
|
||||||
expect(jsPsych.getDisplayElement().innerHTML).toBe('');
|
expect(jsPsych.getDisplayElement().innerHTML).toBe('');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user