~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychTests/GetCharTest.m

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
% We test for some common failings of previous implementations of
38
38
% GetChar.  The labeling of each testing step is somewhat
39
39
% inaccurate because
40
 
fprintf('\nGetCharTest tests the Psychtoolbox function "GetChar". ');
 
40
fprintf('\nGetCharTest tests the Psychtoolbox function "GetChar".\n\n');
41
41
query=1;
42
42
% Enable character key press listening. We use mode 2, which will
43
43
% suppress any output to Matlabs windows.
311
311
        end
312
312
        % TEST 7 of 7: Comparing GetChar timing with KbWait timing: Only
313
313
        % makes sense with Java-based GetChar, skip test in -nojvm mode.
314
 
        if (nargin==0 || (nargin==1 && startAt <= 7)) & (psychusejava('desktop'))
 
314
        if (nargin==0 || (nargin==1 && startAt <= 7))
315
315
            fprintf('GetChar test 7 of 7: Comparison of keypress timing reported by KbWait and GetChar\n');
316
316
            fprintf('  Timing test: The test will wait five times for a keypress of you. Each time, waiting\n');
317
317
            fprintf('  is performed via KbWait. Then the typed character is retrieved via GetChar as well and\n');