diff --git a/docs/overview/experiment-options.md b/docs/overview/experiment-options.md index 2203aea1..468ba7a3 100644 --- a/docs/overview/experiment-options.md +++ b/docs/overview/experiment-options.md @@ -108,7 +108,7 @@ jsPsych.init({ JavaScript keyboard events make a distinction between uppercase and lowercase key responses (e.g. 'a' and 'A'). Often the researcher just cares about which physical key was pressed, and not whether the key press would result in an uppercase letter (for instance, if CapsLock is on or if the Shift key is held down). For this reason, jsPsych converts all key choice parameters and key responses as lowercase by default. This makes it easier to specify key choices (e.g. `choices: ['a']`, instead of `choices: ['a','A']`), and it makes it easier to check and score a participant's response. -There may be situations when you want key choices and responses to be case-sensitive. You can change this by setting the `case_sensitive` parameter to `true` in `jsPsych.init`. +There may be situations when you want key choices and responses to be case-sensitive. You can change this by setting the `case_sensitive_responses` parameter to `true` in `jsPsych.init`. ```js // use case-sensitive key choices and responses, @@ -116,7 +116,7 @@ There may be situations when you want key choices and responses to be case-sensi // and will be recorded this way in the data jsPsych.init({ timeline: [...], - case_sensitive: true + case_sensitive_responses: true }); ``` @@ -146,4 +146,4 @@ jsPsych.init({ {type: 'webgazer'} ] }); -``` \ No newline at end of file +``` diff --git a/docs/plugins/jspsych-webgazer-validate.md b/docs/plugins/jspsych-webgazer-validate.md index e6a26554..bb06068a 100644 --- a/docs/plugins/jspsych-webgazer-validate.md +++ b/docs/plugins/jspsych-webgazer-validate.md @@ -1,4 +1,4 @@ -# jspsych-webgazer-calibrate +# jspsych-webgazer-validate This plugin can be used to measure the accuracy and precision of gaze predictions made by the [WebGazer extension](/extensions/jspsych-ext-webgazer). For a narrative description of eye tracking with jsPsych, see the [eye tracking overview](/overview/eye-tracking). diff --git a/tests/timing-tests/calibration-timeline.js b/tests/timing-tests/calibration-timeline.js new file mode 100644 index 00000000..341a7d42 --- /dev/null +++ b/tests/timing-tests/calibration-timeline.js @@ -0,0 +1,15 @@ +var calibration = { + timeline: [{ + type: 'html-keyboard-response', + stimulus: `
`, + trial_duration: 200, + post_trial_gap: 100 + }], + loop_function: function(data){ + if(data.values()[0].response == ' '){ + return false; + } else { + return true; + } + } +} \ No newline at end of file diff --git a/tests/timing-tests/square-flicker.html b/tests/timing-tests/square-flicker.html new file mode 100644 index 00000000..0aa07e93 --- /dev/null +++ b/tests/timing-tests/square-flicker.html @@ -0,0 +1,42 @@ + + + + + + + + + + + + + \ No newline at end of file