You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2007/04/20 22:59:15 UTC

[jira] Assigned: (HARMONY-3701) [classlib][awt] java.awt.ButtonRTest fails on build machine

     [ https://issues.apache.org/jira/browse/HARMONY-3701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison reassigned HARMONY-3701:
------------------------------------

    Assignee: Tim Ellison

> [classlib][awt] java.awt.ButtonRTest fails on build machine
> -----------------------------------------------------------
>
>                 Key: HARMONY-3701
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3701
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Win XP, x86, running HUTs via Continuum
>            Reporter: Tim Ellison
>         Assigned To: Tim Ellison
>            Priority: Minor
>         Attachments: HARMONY-3701-ButtonRTest.patch, HARMONY-3701-ButtonStateController.patch
>
>
> The test java.awt.ButtonRTest fails for me on an unattended WinXP/x86 machine running the HUTs via Continuum.  The test is reproduced below, and I've marked the failing assertion.
> If I modify the test to bail if the event is not heard (i.e. return if (li.e == null)) then subsequent AWT tests pass ok.
> Note that this test seems to have appeared as a regression test for HARMONY-2305
>     // Regression test for HARMONY-2305
>     // Currently fails on Linux version of RI
>     public void testHarmony2305() throws Exception {
>         final Frame f = new Frame();
>         final Button b1 = new Button("B1"); //$NON-NLS-1$
>         final Button b2 = new Button("B2"); //$NON-NLS-1$
>         final AL l1 = new AL();
>         final AL l2 = new AL();
>         final Robot r = new Robot();
>         try {
>             b1.addActionListener(l1);
>             b2.addActionListener(l2);
>             f.add(BorderLayout.WEST, b1);
>             f.add(BorderLayout.EAST, b2);
>             f.setSize(100, 100);
>             f.setVisible(true);
>             r.setAutoWaitForIdle(true);
>             r.setAutoDelay(500);
>             r.mouseMove(b1.getLocation().x + 3, b1.getLocation().y + 3);
>             r.mousePress(InputEvent.BUTTON1_MASK);
>             r.mouseRelease(InputEvent.BUTTON1_MASK);
>             assertNotNull(l1.e); <<<<<<<<<<---------
>             assertNull(l2.e);
>             r.keyPress(KeyEvent.VK_SPACE);
>             r.mouseMove(b2.getLocation().x + 3, b2.getLocation().y + 3);
>             r.mousePress(InputEvent.BUTTON1_MASK);
>             r.mouseRelease(InputEvent.BUTTON1_MASK);
>             assertNull(l2.e);
>         } finally {
>             f.dispose();
>         }
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.