diff --git a/tests/plugins/plugin-animation.test.js b/tests/plugins/plugin-animation.test.js index 578bac4f..3b417c5e 100644 --- a/tests/plugins/plugin-animation.test.js +++ b/tests/plugins/plugin-animation.test.js @@ -20,7 +20,8 @@ describe('animation plugin', function(){ var trial = { type: 'animation', - stimuli: animation_sequence + stimuli: animation_sequence, + render_on_canvas: false } jsPsych.init({ diff --git a/tests/plugins/plugin-categorize-animation.test.js b/tests/plugins/plugin-categorize-animation.test.js index f8134389..1beb112e 100644 --- a/tests/plugins/plugin-categorize-animation.test.js +++ b/tests/plugins/plugin-categorize-animation.test.js @@ -18,7 +18,8 @@ describe('categorize-animation plugin', function(){ var trial = { type: 'categorize-animation', stimuli: ['img/happy_face_1.jpg', 'img/sad_face_1.jpg'], - key_answer: 68 + key_answer: 68, + render_on_canvas: false } jsPsych.init({ @@ -37,7 +38,8 @@ describe('categorize-animation plugin', function(){ type: 'categorize-animation', stimuli: ['img/happy_face_1.jpg', 'img/sad_face_1.jpg'], key_answer: 68, - prompt: "

Press d if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

" + prompt: "

Press d if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

", + render_on_canvas: false } jsPsych.init({ @@ -55,7 +57,8 @@ describe('categorize-animation plugin', function(){ stimuli: ['img/happy_face_1.jpg', 'img/sad_face_1.jpg'], key_answer: 68, choices: [68, 83], - prompt: "

Press d if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

" + prompt: "

Press d if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

", + render_on_canvas: false } jsPsych.init({ @@ -75,7 +78,8 @@ describe('categorize-animation plugin', function(){ stimuli: ['img/happy_face_1.jpg', 'img/sad_face_1.jpg'], key_answer: 68, choices: [68, 83], - prompt: "

Press d if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

" + prompt: "

Press d if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

", + render_on_canvas: false } jsPsych.init({ @@ -98,7 +102,8 @@ describe('categorize-animation plugin', function(){ text_answer: 'different', correct_text: "

Correct. The faces had %ANS% expressions.

", incorrect_text: "

Incorrect. The faces had %ANS% expressions.

", - prompt: "

Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

", + prompt: "

Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

", + render_on_canvas: false }; jsPsych.init({ @@ -120,7 +125,8 @@ describe('categorize-animation plugin', function(){ choices: [68, 83], correct_text: "

You pressed the correct key

", incorrect_text: "

Incorrect.

", - prompt: "

Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

", + prompt: "

Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

", + render_on_canvas: false }; jsPsych.init({ @@ -142,7 +148,8 @@ describe('categorize-animation plugin', function(){ choices: [68, 83], correct_text: "

You pressed the correct key

", incorrect_text: "

Incorrect. You pressed the wrong key.

", - prompt: "

Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

", + prompt: "

Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

", + render_on_canvas: false }; jsPsych.init({ @@ -165,7 +172,8 @@ describe('categorize-animation plugin', function(){ frame_time: 1000, correct_text: "

You pressed the correct key

", incorrect_text: "

Incorrect. You pressed the wrong key.

", - prompt: "

Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

", + prompt: "

Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

", + render_on_canvas: false }; jsPsych.init({ @@ -191,7 +199,8 @@ describe('categorize-animation plugin', function(){ sequence_reps: 2, correct_text: "

You pressed the correct key

", incorrect_text: "

Incorrect. You pressed the wrong key.

", - prompt: "

Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

", + prompt: "

Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

", + render_on_canvas: false }; jsPsych.init({ @@ -220,7 +229,8 @@ describe('categorize-animation plugin', function(){ correct_text: "

You pressed the correct key

", incorrect_text: "

Incorrect. You pressed the wrong key.

", prompt: "

Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

", - allow_response_before_complete: true, + allow_response_before_complete: true, + render_on_canvas: false }; jsPsych.init({ @@ -244,7 +254,8 @@ describe('categorize-animation plugin', function(){ feeback_duration: 500, correct_text: "

You pressed the correct key

", incorrect_text: "

Incorrect. You pressed the wrong key.

", - prompt: "

Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

", + prompt: "

Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.

", + render_on_canvas: false }; jsPsych.init({ diff --git a/tests/plugins/plugin-image-button-response.test.js b/tests/plugins/plugin-image-button-response.test.js index 3624f1ee..3efa3dab 100644 --- a/tests/plugins/plugin-image-button-response.test.js +++ b/tests/plugins/plugin-image-button-response.test.js @@ -18,7 +18,8 @@ describe('image-button-response', function(){ var trial = { type: 'image-button-response', stimulus: '../media/blue.png', - choices: ['button-choice'] + choices: ['button-choice'], + render_on_canvas: false } jsPsych.init({ @@ -33,7 +34,8 @@ describe('image-button-response', function(){ var trial = { type: 'image-button-response', stimulus: '../media/blue.png', - choices: ['button-choice1', 'button-choice2'] + choices: ['button-choice1', 'button-choice2'], + render_on_canvas: false } jsPsych.init({ @@ -51,6 +53,7 @@ describe('image-button-response', function(){ stimulus: '../media/blue.png', choices: ['buttonChoice'], button_html: '', + render_on_canvas: false } jsPsych.init({ @@ -65,7 +68,8 @@ describe('image-button-response', function(){ var trial = { type: 'image-button-response', stimulus: '../media/blue.png', - choices: ['button-choice'], + choices: ['button-choice'], + render_on_canvas: false } jsPsych.init({ @@ -85,7 +89,8 @@ describe('image-button-response', function(){ type: 'image-button-response', stimulus: '../media/blue.png', choices: ['button-choice'], - prompt: '

This is a prompt

' + prompt: '

This is a prompt

', + render_on_canvas: false } jsPsych.init({ @@ -101,7 +106,8 @@ describe('image-button-response', function(){ type: 'image-button-response', stimulus: '../media/blue.png', choices: ['button-choice'], - stimulus_duration: 500 + stimulus_duration: 500, + render_on_canvas: false } jsPsych.init({ @@ -119,7 +125,8 @@ describe('image-button-response', function(){ type: 'image-button-response', stimulus: '../media/blue.png', choices: ['f','j'], - trial_duration: 500 + trial_duration: 500, + render_on_canvas: false } jsPsych.init({ @@ -138,6 +145,7 @@ describe('image-button-response', function(){ stimulus: '../media/blue.png', choices: ['button-choice'], response_ends_trial: true, + render_on_canvas: false } jsPsych.init({ @@ -160,7 +168,8 @@ describe('image-button-response', function(){ stimulus: '../media/blue.png', choices: ['button-choice'], response_ends_trial: false, - trial_duration: null + trial_duration: null, + render_on_canvas: false }; jsPsych.init({ diff --git a/tests/plugins/plugin-image-keyboard-response.test.js b/tests/plugins/plugin-image-keyboard-response.test.js index 449686ab..5535e7e4 100644 --- a/tests/plugins/plugin-image-keyboard-response.test.js +++ b/tests/plugins/plugin-image-keyboard-response.test.js @@ -17,7 +17,8 @@ describe('image-keyboard-response', function(){ test('displays image stimulus', function(){ var trial = { type: 'image-keyboard-response', - stimulus: '../media/blue.png' + stimulus: '../media/blue.png', + render_on_canvas: false } jsPsych.init({ @@ -35,6 +36,7 @@ describe('image-keyboard-response', function(){ type: 'image-keyboard-response', stimulus: '../media/blue.png', choices: ['f','j'], + render_on_canvas: false } jsPsych.init({ @@ -54,7 +56,8 @@ describe('image-keyboard-response', function(){ type: 'image-keyboard-response', stimulus: '../media/blue.png', choices: ['f','j'], - prompt: '
this is a prompt
' + prompt: '
this is a prompt
', + render_on_canvas: false } jsPsych.init({ @@ -72,6 +75,7 @@ describe('image-keyboard-response', function(){ stimulus: '../media/blue.png', choices:['f','j'], stimulus_duration: 500, + render_on_canvas: false } jsPsych.init({ @@ -91,7 +95,8 @@ describe('image-keyboard-response', function(){ type: 'image-keyboard-response', stimulus: '../media/blue.png', choices: ['f','j'], - trial_duration: 500 + trial_duration: 500, + render_on_canvas: false } jsPsych.init({ @@ -110,6 +115,7 @@ describe('image-keyboard-response', function(){ stimulus: '../media/blue.png', choices: ['f','j'], response_ends_trial: true, + render_on_canvas: false } jsPsych.init({ @@ -133,7 +139,8 @@ describe('image-keyboard-response', function(){ stimulus: '../media/blue.png', choices: ['f','j'], response_ends_trial: false, - trial_duration: null + trial_duration: null, + render_on_canvas: false }; jsPsych.init({ diff --git a/tests/plugins/plugin-image-slider-response.test.js b/tests/plugins/plugin-image-slider-response.test.js index 9137d457..ef743866 100644 --- a/tests/plugins/plugin-image-slider-response.test.js +++ b/tests/plugins/plugin-image-slider-response.test.js @@ -20,6 +20,7 @@ describe('image-slider-response', function(){ stimulus: '../media/blue.png', labels: ['left', 'right'], button_label: 'button', + render_on_canvas: false, on_load: function(){ expect(jsPsych.getDisplayElement().innerHTML).toMatch('
This is a prompt

' + prompt: '

This is a prompt

', + render_on_canvas: false } jsPsych.init({ @@ -118,7 +123,8 @@ describe('image-slider-response', function(){ stimulus: '../media/blue.png', labels: ['left', 'right'], button_label: 'button', - stimulus_duration: 500 + stimulus_duration: 500, + render_on_canvas: false } jsPsych.init({ @@ -138,7 +144,8 @@ describe('image-slider-response', function(){ stimulus: '../media/blue.png', labels: ['left', 'right'], button_label: 'button', - trial_duration: 500 + trial_duration: 500, + render_on_canvas: false } @@ -158,7 +165,8 @@ describe('image-slider-response', function(){ stimulus: '../media/blue.png', labels: ['left', 'right'], button_label: 'button', - response_ends_trial: true + response_ends_trial: true, + render_on_canvas: false } jsPsych.init({