From 102a633c39237c8ab0510e9c5e891b32c0725a06 Mon Sep 17 00:00:00 2001 From: KristinDiep Date: Wed, 12 Jul 2017 15:06:40 -0400 Subject: [PATCH] fixed console errors --- tests/plugins/plugin-html-slider-response.test.js | 9 ++++++++- tests/plugins/plugin-image-slider-response.test.js | 7 +++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/tests/plugins/plugin-html-slider-response.test.js b/tests/plugins/plugin-html-slider-response.test.js index 6be009e6..5e7ae538 100644 --- a/tests/plugins/plugin-html-slider-response.test.js +++ b/tests/plugins/plugin-html-slider-response.test.js @@ -18,7 +18,8 @@ describe('html-slider-response', function(){ var trial = { type: 'html-slider-response', stimulus: 'this is html', - labels: ['left', 'right'] + labels: ['left', 'right'], + button_label: 'button' } jsPsych.init({ @@ -33,6 +34,7 @@ describe('html-slider-response', function(){ type: 'html-slider-response', stimulus: 'this is html', labels: ['left', 'right'], + button_label: 'button' } jsPsych.init({ @@ -66,6 +68,7 @@ describe('html-slider-response', function(){ min: 2, max: 10, step: 2, + button_label: 'button' } jsPsych.init({ @@ -82,6 +85,7 @@ describe('html-slider-response', function(){ type: 'html-slider-response', stimulus: 'this is html', labels: ['left', 'right'], + button_label: 'button', prompt: '

This is a prompt

' } @@ -97,6 +101,7 @@ describe('html-slider-response', function(){ type: 'html-slider-response', stimulus: 'this is html', labels: ['left', 'right'], + button_label: 'button', stimulus_duration: 500 } @@ -114,6 +119,7 @@ describe('html-slider-response', function(){ type: 'html-slider-response', stimulus: 'this is html', labels: ['left', 'right'], + button_label: 'button', trial_duration: 500 } @@ -132,6 +138,7 @@ describe('html-slider-response', function(){ type: 'html-slider-response', stimulus: 'this is html', labels: ['left', 'right'], + button_label: 'button', response_ends_trial: true } diff --git a/tests/plugins/plugin-image-slider-response.test.js b/tests/plugins/plugin-image-slider-response.test.js index ea9b037b..5b97a276 100644 --- a/tests/plugins/plugin-image-slider-response.test.js +++ b/tests/plugins/plugin-image-slider-response.test.js @@ -19,6 +19,7 @@ describe('image-slider-response', function(){ type: 'image-slider-response', stimulus: '../media/blue.png', labels: ['left', 'right'], + button_label: 'button' } jsPsych.init({ @@ -33,6 +34,7 @@ describe('image-slider-response', function(){ type: 'image-slider-response', stimulus: '../media/blue.png', labels: ['left', 'right'], + button_label: 'button' } jsPsych.init({ @@ -63,6 +65,7 @@ describe('image-slider-response', function(){ type: 'image-slider-response', stimulus: '../media/blue.png', labels: ['left', 'right'], + button_label: 'button', min: 2, max: 10, step: 2, @@ -82,6 +85,7 @@ describe('image-slider-response', function(){ type: 'image-slider-response', stimulus: '../media/blue.png', labels: ['left', 'right'], + button_label: 'button', prompt: '

This is a prompt

' } @@ -97,6 +101,7 @@ describe('image-slider-response', function(){ type: 'image-slider-response', stimulus: '../media/blue.png', labels: ['left', 'right'], + button_label: 'button', stimulus_duration: 500 } @@ -114,6 +119,7 @@ describe('image-slider-response', function(){ type: 'image-slider-response', stimulus: '../media/blue.png', labels: ['left', 'right'], + button_label: 'button', trial_duration: 500 } @@ -132,6 +138,7 @@ describe('image-slider-response', function(){ type: 'image-slider-response', stimulus: '../media/blue.png', labels: ['left', 'right'], + button_label: 'button', response_ends_trial: true }