From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18620 invoked by alias); 21 Aug 2005 02:14:59 -0000 Mailing-List: contact mauve-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-discuss-owner@sources.redhat.com Received: (qmail 18612 invoked by uid 22791); 21 Aug 2005 02:14:54 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 21 Aug 2005 02:14:54 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j7L2Erea021186 for ; Sat, 20 Aug 2005 22:14:53 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j7L2EmV32209 for ; Sat, 20 Aug 2005 22:14:48 -0400 Received: from localhost.localdomain (IDENT:U2FsdGVkX1/FYSEpPXiv8UHuQNcDYOJid6G9rRWWclo@tortoise.toronto.redhat.com [172.16.14.92]) by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id j7L2El1M014806 for ; Sat, 20 Aug 2005 22:14:47 -0400 Subject: check for old-style modifiers in getAWTKeyStroke From: Thomas Fitzsimmons To: mauve-discuss@sources.redhat.com Content-Type: multipart/mixed; boundary="=-Z/2MxRx3ArAnFz9AkMVt" Date: Sun, 21 Aug 2005 02:14:00 -0000 Message-Id: <1124590277.957.25.camel@rh-ibm-t41> Mime-Version: 1.0 X-SW-Source: 2005-q3/txt/msg00005.txt.bz2 --=-Z/2MxRx3ArAnFz9AkMVt Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 255 Hi, I added checks for old-style modifiers in gnu.testlet.java.awt.AWTKeyStroke.getAWTKeyStroke. Tom 2005-08-20 Thomas Fitzsimmons * gnu/testlet/java/awt/AWTKeyStroke/getAWTKeyStroke.java: Also check for old-style modifiers. --=-Z/2MxRx3ArAnFz9AkMVt Content-Disposition: inline; filename=mauve-keystroke.patch Content-Type: text/x-patch; name=mauve-keystroke.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 1541 Index: gnu/testlet/java/awt/AWTKeyStroke/getAWTKeyStroke.java =================================================================== RCS file: /cvs/mauve/mauve/gnu/testlet/java/awt/AWTKeyStroke/getAWTKeyStroke.java,v retrieving revision 1.2 diff -u -r1.2 getAWTKeyStroke.java --- gnu/testlet/java/awt/AWTKeyStroke/getAWTKeyStroke.java 13 Feb 2005 14:07:27 -0000 1.2 +++ gnu/testlet/java/awt/AWTKeyStroke/getAWTKeyStroke.java 21 Aug 2005 02:12:05 -0000 @@ -106,14 +106,20 @@ harness.check(ks, expected); ks = AWTKeyStroke.getAWTKeyStroke("control DELETE"); + expected = AWTKeyStroke.getAWTKeyStroke(KeyEvent.VK_DELETE, InputEvent.CTRL_DOWN_MASK); + harness.check(ks, expected); expected = AWTKeyStroke.getAWTKeyStroke(KeyEvent.VK_DELETE, InputEvent.CTRL_MASK); harness.check(ks, expected); ks = AWTKeyStroke.getAWTKeyStroke("alt shift X"); + expected = AWTKeyStroke.getAWTKeyStroke(KeyEvent.VK_X, InputEvent.ALT_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK); + harness.check(ks, expected); expected = AWTKeyStroke.getAWTKeyStroke(KeyEvent.VK_X, InputEvent.ALT_MASK | InputEvent.SHIFT_MASK); harness.check(ks, expected); ks = AWTKeyStroke.getAWTKeyStroke("alt shift released X"); + expected = AWTKeyStroke.getAWTKeyStroke(KeyEvent.VK_X, InputEvent.ALT_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK, true); + harness.check(ks, expected); expected = AWTKeyStroke.getAWTKeyStroke(KeyEvent.VK_X, InputEvent.ALT_MASK | InputEvent.SHIFT_MASK, true); harness.check(ks, expected); --=-Z/2MxRx3ArAnFz9AkMVt--