# HG changeset patch # User kshefov # Date 1380619837 -14400 # Node ID 56353c74c0ad0862443b157a4edd482aee65facc # Parent 7824db4971a9ad58fd8311cb74ec3a556a406b35 8012468: [TEST_BUG] javax/swing/PopupFactory/6276087/NonOpaquePopupMenuTest.java doesn't release mouse button Reviewed-by: serb, alexsch Contributed-by: vera.akulova@oracle.com diff -r 7824db4971a9 -r 56353c74c0ad jdk/test/javax/swing/PopupFactory/6276087/NonOpaquePopupMenuTest.java --- a/jdk/test/javax/swing/PopupFactory/6276087/NonOpaquePopupMenuTest.java Tue Oct 01 13:19:07 2013 +0400 +++ b/jdk/test/javax/swing/PopupFactory/6276087/NonOpaquePopupMenuTest.java Tue Oct 01 13:30:37 2013 +0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -70,6 +70,7 @@ Point p = getMenuClickPoint(); robot.mouseMove(p.x, p.y); robot.mousePress(InputEvent.BUTTON1_MASK); + robot.mouseRelease(InputEvent.BUTTON1_MASK); toolkit.realSync();