public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
* check for old-style modifiers in getAWTKeyStroke
@ 2005-08-21  2:14 Thomas Fitzsimmons
  0 siblings, 0 replies; only message in thread
From: Thomas Fitzsimmons @ 2005-08-21  2:14 UTC (permalink / raw)
  To: mauve-discuss

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-21  2:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-21  2:14 check for old-style modifiers in getAWTKeyStroke Thomas Fitzsimmons

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