public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Thomas Fitzsimmons <fitzsim@redhat.com>
To: mauve-discuss@sources.redhat.com
Subject: check for old-style modifiers in getAWTKeyStroke
Date: Sun, 21 Aug 2005 02:14:00 -0000	[thread overview]
Message-ID: <1124590277.957.25.camel@rh-ibm-t41> (raw)

[-- Attachment #1: Type: text/plain, Size: 255 bytes --]

Hi,

I added checks for old-style modifiers in
gnu.testlet.java.awt.AWTKeyStroke.getAWTKeyStroke.

Tom

2005-08-20  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/testlet/java/awt/AWTKeyStroke/getAWTKeyStroke.java: Also
	check for old-style modifiers.


[-- Attachment #2: mauve-keystroke.patch --]
[-- Type: text/x-patch, Size: 1541 bytes --]

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);
     

                 reply	other threads:[~2005-08-21  2:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1124590277.957.25.camel@rh-ibm-t41 \
    --to=fitzsim@redhat.com \
    --cc=mauve-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).