< prev index next >

test/java/awt/event/InputEvent/ButtonArraysEquality/ButtonArraysEquality.java

Print this page

        

*** 70,80 **** int [] buttonDownMasks = new int [Array.getLength(obj)]; checkNullAndPutValuesToArray(buttonDownMasks, obj); //check lengths: array shouldn't contain less elements then the number of buttons on a mouse if (buttonDownMasks.length < buttonDownMasksAPI.length){ ! throw new RuntimeException("Test failed. The lengths array is less then the number of buttons"); } // verify values for first three buttons for (int i = 0; i < 3; i++) { if (eventDownMask[i] != buttonDownMasks[i]) --- 70,80 ---- int [] buttonDownMasks = new int [Array.getLength(obj)]; checkNullAndPutValuesToArray(buttonDownMasks, obj); //check lengths: array shouldn't contain less elements then the number of buttons on a mouse if (buttonDownMasks.length < buttonDownMasksAPI.length){ ! throw new RuntimeException("Test failed. The lengths array is less than the number of buttons"); } // verify values for first three buttons for (int i = 0; i < 3; i++) { if (eventDownMask[i] != buttonDownMasks[i])
< prev index next >