Opened 11 years ago
Closed 11 years ago
#10198 closed defect (fixed)
doh.robot not typing SHIFT + *_ARROW
Reported by: | Enrique Rafael Muñoz Flores | Owned by: | haysmark |
---|---|---|---|
Priority: | high | Milestone: | 1.4 |
Component: | TestFramework | Version: | 1.3.2 |
Keywords: | doh robot arrow shift | Cc: | |
Blocked By: | Blocking: |
Description
Appearently the doh.robot is not working out the combination *_ARROW + SHIFT, I tried *_ARROW + CTRL and it worked, also TAB + SHIFT works ok, so it looks like its that certain key combination which is not working.
Checked out the DOHRobot.java, and its console, but everything was fine. Although for some reason they did not include the log("Releasing key"); for, ctrl, alt and altgraph, on DOHRobot.java Lines 1036-1047.
OS: Windows XP Lang/region: Spanish(Mexico), Mexico Keyboard: Latin America, United States (International).
Attachments (5)
Change History (12)
comment:1 Changed 11 years ago by
Owner: | changed from alex to haysmark |
---|
Changed 11 years ago by
Attachment: | doh.robot-test.html added |
---|
Here is a simple example, the text should be selected or deselected when you SHIFT+RIGHT/LEFT_ARROW.
comment:2 Changed 11 years ago by
I reproduced this issue. I was able to make it work by pressing numlock on my keyboard to disable numlock.
comment:3 Changed 11 years ago by
This is a known issue in Sun's JRE:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4838497
It is a 6 year old ticket so don't count on it getting fixed. The solution may be to code the applet to turn off numlock at the start of each test via the Java AWT Toolkit API already embedded in the applet.
comment:4 Changed 11 years ago by
Milestone: | tbd → 1.4 |
---|
This problem is causing [dijit/tests/_base/robot/FocusManager.html] to fail.
Changed 11 years ago by
Attachment: | 10198.patch added |
---|
Fixes #10198. Fixed the FocusManager? test failure on Windows machines by automatically disabling numlock in the robot code before pressing SHIFT+arrow keys.
comment:5 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [20705]) Fixes #10198. Fixed the FocusManager?? test failure on Windows machines by automatically disabling numlock in the robot code before pressing SHIFT+arrow keys.
Changed 11 years ago by
Attachment: | 10198.2.patch added |
---|
Fixes #10198. Reorder if statement to only check numlock on Windows.
Changed 11 years ago by
Attachment: | DOHRobot.jar added |
---|
Robot jar with code to work with non-Windows systems.
comment:6 Changed 11 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
[20705] regresses robot testing on Linux. I've attached the fix, which is to check that the OS is windows before invoking getLockingKeyState.
comment:7 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Please attach a test case using the attach file button.