8177386: [TESTBUG] The "Undo" menu item in the context menu is disable
authorrsingh
Mon, 10 Apr 2017 16:20:40 +0530
changeset 44659 1b34d7d66840
parent 44658 60dab93625a6
child 44660 990445ad62ec
child 44661 3d76dfc6d0f4
8177386: [TESTBUG] The "Undo" menu item in the context menu is disable Reviewed-by: serb, aghaisas Contributed-by: rahul.d.singh@oracle.com
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();