diff --git a/tests/plugins/plugin-animation.test.js b/tests/plugins/plugin-animation.test.js
index 3b417c5e..147ceb50 100644
--- a/tests/plugins/plugin-animation.test.js
+++ b/tests/plugins/plugin-animation.test.js
@@ -25,8 +25,7 @@ describe('animation plugin', function(){
}
jsPsych.init({
- timeline: [trial],
- auto_preload: false
+ timeline: [trial]
});
expect(jsPsych.getDisplayElement().innerHTML).toMatch('');
diff --git a/tests/plugins/plugin-categorize-animation.test.js b/tests/plugins/plugin-categorize-animation.test.js
index 633d2776..fd261c11 100644
--- a/tests/plugins/plugin-categorize-animation.test.js
+++ b/tests/plugins/plugin-categorize-animation.test.js
@@ -23,8 +23,7 @@ describe('categorize-animation plugin', function(){
}
jsPsych.init({
- timeline: [trial],
- auto_preload: false
+ timeline: [trial]
});
jest.runTimersToTime(500);
@@ -43,8 +42,7 @@ describe('categorize-animation plugin', function(){
}
jsPsych.init({
- timeline: [trial],
- auto_preload: false
+ timeline: [trial]
});
jest.runTimersToTime(1500);
@@ -62,8 +60,7 @@ describe('categorize-animation plugin', function(){
}
jsPsych.init({
- timeline: [trial],
- auto_preload: false
+ timeline: [trial]
});
jest.runTimersToTime(1500);
@@ -83,8 +80,7 @@ describe('categorize-animation plugin', function(){
}
jsPsych.init({
- timeline: [trial],
- auto_preload: false
+ timeline: [trial]
});
jest.runTimersToTime(1500);
@@ -107,8 +103,7 @@ describe('categorize-animation plugin', function(){
};
jsPsych.init({
- timeline: [trials],
- auto_preload: false
+ timeline: [trials]
});
jest.runTimersToTime(1500);
@@ -130,8 +125,7 @@ describe('categorize-animation plugin', function(){
};
jsPsych.init({
- timeline: [trials],
- auto_preload: false
+ timeline: [trials]
});
jest.runTimersToTime(1500);
@@ -153,8 +147,7 @@ describe('categorize-animation plugin', function(){
};
jsPsych.init({
- timeline: [trials],
- auto_preload: false
+ timeline: [trials]
});
jest.runTimersToTime(1500);
@@ -177,8 +170,7 @@ describe('categorize-animation plugin', function(){
};
jsPsych.init({
- timeline: [trials],
- auto_preload: false
+ timeline: [trials]
});
jest.runTimersToTime(1000);
@@ -204,8 +196,7 @@ describe('categorize-animation plugin', function(){
};
jsPsych.init({
- timeline: [trials],
- auto_preload: false
+ timeline: [trials]
});
jest.runTimersToTime(1000);
@@ -234,8 +225,7 @@ describe('categorize-animation plugin', function(){
};
jsPsych.init({
- timeline: [trials],
- auto_preload: false
+ timeline: [trials]
});
jest.runTimersToTime(1500);
@@ -259,8 +249,7 @@ describe('categorize-animation plugin', function(){
};
jsPsych.init({
- timeline: [trials],
- auto_preload: false
+ timeline: [trials]
});
jest.runTimersToTime(1500);
diff --git a/tests/plugins/plugin-free-sort.test.js b/tests/plugins/plugin-free-sort.test.js
index a8294cc1..922218d7 100644
--- a/tests/plugins/plugin-free-sort.test.js
+++ b/tests/plugins/plugin-free-sort.test.js
@@ -20,8 +20,7 @@ describe('free-sort plugin', function(){
}
jsPsych.init({
- timeline: [trial],
- auto_preload: false
+ timeline: [trial]
});
expect(jsPsych.getDisplayElement().innerHTML).toMatch(new RegExp('src=\"img/happy_face_1.jpg\" data-src=\"img/happy_face_1.jpg\"'));
@@ -39,8 +38,7 @@ describe('free-sort plugin', function(){
}
jsPsych.init({
- timeline: [trial],
- auto_preload: false
+ timeline: [trial]
});
expect(jsPsych.getDisplayElement().innerHTML).toMatch(new RegExp('class=\"jspsych-free-sort-arena\" style=\"position: relative; width:700px; height:500px;'));
@@ -55,8 +53,7 @@ describe('free-sort plugin', function(){
}
jsPsych.init({
- timeline: [trial],
- auto_preload: false
+ timeline: [trial]
});
expect(jsPsych.getDisplayElement().innerHTML).toMatch(new RegExp('
This is a prompt
This is a prompt
.+')); diff --git a/tests/plugins/plugin-iat-image.test.js b/tests/plugins/plugin-iat-image.test.js index bf02ff82..deab8091 100644 --- a/tests/plugins/plugin-iat-image.test.js +++ b/tests/plugins/plugin-iat-image.test.js @@ -29,8 +29,7 @@ describe('iat-image plugin', function(){ } jsPsych.init({ - timeline: [trial], - auto_preload: false + timeline: [trial] }); expect(jsPsych.getDisplayElement().innerHTML).toMatch(/blue.png/); @@ -51,8 +50,7 @@ describe('iat-image plugin', function(){ } jsPsych.init({ - timeline: [trial], - auto_preload: false + timeline: [trial] }); utils.pressKey('j'); @@ -73,8 +71,7 @@ describe('iat-image plugin', function(){ } jsPsych.init({ - timeline: [trial], - auto_preload: false + timeline: [trial] }); utils.pressKey('f'); @@ -98,8 +95,7 @@ describe('iat-image plugin', function(){ } jsPsych.init({ - timeline: [trial], - auto_preload: false + timeline: [trial] }); utils.pressKey('f'); @@ -123,8 +119,7 @@ describe('iat-image plugin', function(){ } jsPsych.init({ - timeline: [trial], - auto_preload: false + timeline: [trial] }); utils.pressKey('j'); @@ -148,8 +143,7 @@ describe('iat-image plugin', function(){ } jsPsych.init({ - timeline: [trial], - auto_preload: false + timeline: [trial] }); expect(jsPsych.getDisplayElement().innerHTML).toMatch(new RegExp('Press j for:
UNFRIENDLY'));
@@ -176,8 +170,7 @@ describe('iat-image plugin', function(){
}
jsPsych.init({
- timeline: [trial],
- auto_preload: false
+ timeline: [trial]
});
expect(jsPsych.getDisplayElement().querySelector('#wrongImgContainer').style.visibility).toBe('hidden');
@@ -200,8 +193,7 @@ describe('iat-image plugin', function(){
}
jsPsych.init({
- timeline: [trial],
- auto_preload: false
+ timeline: [trial]
});
expect(jsPsych.getDisplayElement().innerHTML).toMatch(new RegExp(''));
@@ -227,8 +219,7 @@ describe('iat-image plugin', function(){
}
jsPsych.init({
- timeline: [trial],
- auto_preload: false
+ timeline: [trial]
});
utils.pressKey('f');
@@ -254,8 +245,7 @@ describe('iat-image plugin', function(){
}
jsPsych.init({
- timeline: [trial],
- auto_preload: false
+ timeline: [trial]
});
expect(jsPsych.getDisplayElement().innerHTML).toMatch(new RegExp('
'));
@@ -288,8 +278,7 @@ describe('iat-image plugin', function(){
}
jsPsych.init({
- timeline: [trial],
- auto_preload: false
+ timeline: [trial]
});
expect(jsPsych.getDisplayElement().innerHTML).toMatch(new RegExp('
'));
diff --git a/tests/plugins/plugin-image-button-response.test.js b/tests/plugins/plugin-image-button-response.test.js
index 3efa3dab..d2212212 100644
--- a/tests/plugins/plugin-image-button-response.test.js
+++ b/tests/plugins/plugin-image-button-response.test.js
@@ -23,8 +23,7 @@ describe('image-button-response', function(){
}
jsPsych.init({
- timeline: [trial],
- auto_preload: false
+ timeline: [trial]
});
expect(jsPsych.getDisplayElement().innerHTML).toMatch('
button-choice1'));
@@ -57,8 +55,7 @@ describe('image-button-response', function(){
}
jsPsych.init({
- timeline: [trial],
- auto_preload: false
+ timeline: [trial]
});
expect(jsPsych.getDisplayElement().innerHTML).toMatch(new RegExp(''));
@@ -73,8 +70,7 @@ describe('image-button-response', function(){
}
jsPsych.init({
- timeline: [trial],
- auto_preload: false
+ timeline: [trial]
});
expect(jsPsych.getDisplayElement().innerHTML).toMatch('
button-choice
This is a prompt
'); @@ -111,8 +106,7 @@ describe('image-button-response', function(){ } jsPsych.init({ - timeline: [trial], - auto_preload: false + timeline: [trial] }); expect(jsPsych.getDisplayElement().querySelector('#jspsych-image-button-response-stimulus').style.visibility).toMatch(""); @@ -130,8 +124,7 @@ describe('image-button-response', function(){ } jsPsych.init({ - timeline: [trial], - auto_preload: false + timeline: [trial] }); expect(jsPsych.getDisplayElement().innerHTML).toMatch('This is a prompt
'); @@ -128,8 +123,7 @@ describe('image-slider-response', function(){ } jsPsych.init({ - timeline: [trial], - auto_preload: false + timeline: [trial] }); expect(jsPsych.getDisplayElement().querySelector('#jspsych-image-slider-response-stimulus').style.visibility).toMatch(""); @@ -146,12 +140,10 @@ describe('image-slider-response', function(){ button_label: 'button', trial_duration: 500, render_on_canvas: false - } jsPsych.init({ - timeline: [trial], - auto_preload: false + timeline: [trial] }); expect(jsPsych.getDisplayElement().innerHTML).toMatch('