# HG changeset patch # User rsingh # Date 1491821440 -19800 # Node ID 1b34d7d66840d0ebeb624dd1c3b8aa411ab9938e # Parent 60dab93625a6272f3732b9410ecd8aae8358cc35 8177386: [TESTBUG] The "Undo" menu item in the context menu is disable Reviewed-by: serb, aghaisas Contributed-by: rahul.d.singh@oracle.com diff -r 60dab93625a6 -r 1b34d7d66840 jdk/test/java/awt/TextField/DisabledUndoTest/DisabledUndoTest.java --- a/jdk/test/java/awt/TextField/DisabledUndoTest/DisabledUndoTest.java Wed Apr 05 20:33:16 2017 +0300 +++ b/jdk/test/java/awt/TextField/DisabledUndoTest/DisabledUndoTest.java Mon Apr 10 16:20:40 2017 +0530 @@ -24,7 +24,7 @@ /* * @test * @key headful - * @bug 4302718 6753165 + * @bug 4302718 6753165 8177386 * @summary verifies that undo does not work in a disabled TextField on windows * @requires (os.family == "windows") * @run main/manual DisabledUndoTest @@ -42,12 +42,12 @@ private static void init() throws Exception { String[] instructions - = { - "1.Type a few symbols in the textfield.", - "2.Then click the button Disable textfield to disable the textfield.", - "3.Right-click on the textfield to invoke context menu and select \"Undo\".", - "4.Verify that the symbols you typed are NOT undone.", - "5.If they are not, press Pass, else press Fail." + = { + "1.Type a few symbols in the textfield.", + "2.Right-click on the textfield to invoke context menu and select \"Undo\". Make sure the typed symbol is undone.", + "3.Then click the button Disable textfield to disable the textfield.", + "4.Right-click on the textfield to invoke context menu.Verify that Undo option is disabled in context menu and you can't undo the text", + "5.If they are not, press Pass, else press Fail." }; Sysout.createDialog();