mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38:11 +00:00
add render_on_canvas: false to tests
This commit is contained in:
parent
af8d531259
commit
e9adaff0e0
@ -20,7 +20,8 @@ describe('animation plugin', function(){
|
||||
|
||||
var trial = {
|
||||
type: 'animation',
|
||||
stimuli: animation_sequence
|
||||
stimuli: animation_sequence,
|
||||
render_on_canvas: false
|
||||
}
|
||||
|
||||
jsPsych.init({
|
||||
|
@ -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: "<p>Press d if the faces had different emotional expressions. Press S if the faces had the same emotional expression.</p>"
|
||||
prompt: "<p>Press d if the faces had different emotional expressions. Press S if the faces had the same emotional expression.</p>",
|
||||
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: "<p>Press d if the faces had different emotional expressions. Press S if the faces had the same emotional expression.</p>"
|
||||
prompt: "<p>Press d if the faces had different emotional expressions. Press S if the faces had the same emotional expression.</p>",
|
||||
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: "<p>Press d if the faces had different emotional expressions. Press S if the faces had the same emotional expression.</p>"
|
||||
prompt: "<p>Press d if the faces had different emotional expressions. Press S if the faces had the same emotional expression.</p>",
|
||||
render_on_canvas: false
|
||||
}
|
||||
|
||||
jsPsych.init({
|
||||
@ -99,6 +103,7 @@ describe('categorize-animation plugin', function(){
|
||||
correct_text: "<p>Correct. The faces had %ANS% expressions.</p>",
|
||||
incorrect_text: "<p>Incorrect. The faces had %ANS% expressions.</p>",
|
||||
prompt: "<p>Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.</p>",
|
||||
render_on_canvas: false
|
||||
};
|
||||
|
||||
jsPsych.init({
|
||||
@ -121,6 +126,7 @@ describe('categorize-animation plugin', function(){
|
||||
correct_text: "<p>You pressed the correct key</p>",
|
||||
incorrect_text: "<p>Incorrect.</p>",
|
||||
prompt: "<p>Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.</p>",
|
||||
render_on_canvas: false
|
||||
};
|
||||
|
||||
jsPsych.init({
|
||||
@ -143,6 +149,7 @@ describe('categorize-animation plugin', function(){
|
||||
correct_text: "<p>You pressed the correct key</p>",
|
||||
incorrect_text: "<p>Incorrect. You pressed the wrong key.</p>",
|
||||
prompt: "<p>Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.</p>",
|
||||
render_on_canvas: false
|
||||
};
|
||||
|
||||
jsPsych.init({
|
||||
@ -166,6 +173,7 @@ describe('categorize-animation plugin', function(){
|
||||
correct_text: "<p>You pressed the correct key</p>",
|
||||
incorrect_text: "<p>Incorrect. You pressed the wrong key.</p>",
|
||||
prompt: "<p>Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.</p>",
|
||||
render_on_canvas: false
|
||||
};
|
||||
|
||||
jsPsych.init({
|
||||
@ -192,6 +200,7 @@ describe('categorize-animation plugin', function(){
|
||||
correct_text: "<p>You pressed the correct key</p>",
|
||||
incorrect_text: "<p>Incorrect. You pressed the wrong key.</p>",
|
||||
prompt: "<p>Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.</p>",
|
||||
render_on_canvas: false
|
||||
};
|
||||
|
||||
jsPsych.init({
|
||||
@ -221,6 +230,7 @@ describe('categorize-animation plugin', function(){
|
||||
incorrect_text: "<p>Incorrect. You pressed the wrong key.</p>",
|
||||
prompt: "<p>Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.</p>",
|
||||
allow_response_before_complete: true,
|
||||
render_on_canvas: false
|
||||
};
|
||||
|
||||
jsPsych.init({
|
||||
@ -245,6 +255,7 @@ describe('categorize-animation plugin', function(){
|
||||
correct_text: "<p>You pressed the correct key</p>",
|
||||
incorrect_text: "<p>Incorrect. You pressed the wrong key.</p>",
|
||||
prompt: "<p>Press D if the faces had different emotional expressions. Press S if the faces had the same emotional expression.</p>",
|
||||
render_on_canvas: false
|
||||
};
|
||||
|
||||
jsPsych.init({
|
||||
|
@ -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: '<button class="jspsych-custom-button">%choice%</button>',
|
||||
render_on_canvas: false
|
||||
}
|
||||
|
||||
jsPsych.init({
|
||||
@ -66,6 +69,7 @@ describe('image-button-response', function(){
|
||||
type: 'image-button-response',
|
||||
stimulus: '../media/blue.png',
|
||||
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: '<p>This is a prompt</p>'
|
||||
prompt: '<p>This is a prompt</p>',
|
||||
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({
|
||||
|
@ -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: '<div id="foo">this is a prompt</div>'
|
||||
prompt: '<div id="foo">this is a prompt</div>',
|
||||
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({
|
||||
|
@ -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('<div id="jspsych-image-slider-response-stimulus"><img src="../media/blue.png"');
|
||||
utils.clickTarget(document.querySelector('#jspsych-image-slider-response-next'));
|
||||
@ -38,7 +39,8 @@ describe('image-slider-response', function(){
|
||||
type: 'image-slider-response',
|
||||
stimulus: '../media/blue.png',
|
||||
labels: ['left', 'right'],
|
||||
button_label: 'button'
|
||||
button_label: 'button',
|
||||
render_on_canvas: false
|
||||
}
|
||||
|
||||
jsPsych.init({
|
||||
@ -57,7 +59,8 @@ describe('image-slider-response', function(){
|
||||
type: 'image-slider-response',
|
||||
stimulus: '../media/blue.png',
|
||||
labels: ['left', 'right'],
|
||||
button_label: 'button'
|
||||
button_label: 'button',
|
||||
render_on_canvas: false
|
||||
}
|
||||
|
||||
jsPsych.init({
|
||||
@ -79,6 +82,7 @@ describe('image-slider-response', function(){
|
||||
min: 2,
|
||||
max: 10,
|
||||
step: 2,
|
||||
render_on_canvas: false
|
||||
}
|
||||
|
||||
jsPsych.init({
|
||||
@ -99,7 +103,8 @@ describe('image-slider-response', function(){
|
||||
stimulus: '../media/blue.png',
|
||||
labels: ['left', 'right'],
|
||||
button_label: 'button',
|
||||
prompt: '<p>This is a prompt</p>'
|
||||
prompt: '<p>This is a prompt</p>',
|
||||
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({
|
||||
|
Loading…
Reference in New Issue
Block a user