[jbosstools-commits] JBoss Tools SVN: r42663 - trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/smoke.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Jul 20 10:18:51 EDT 2012


Author: vpakan at redhat.com
Date: 2012-07-20 10:18:50 -0400 (Fri, 20 Jul 2012)
New Revision: 42663

Modified:
   trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/smoke/CodeCompletionTest.java
Log:
Fixes for JBT 3.3.1

Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/smoke/CodeCompletionTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/smoke/CodeCompletionTest.java	2012-07-20 10:48:46 UTC (rev 42662)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/smoke/CodeCompletionTest.java	2012-07-20 14:18:50 UTC (rev 42663)
@@ -10,6 +10,7 @@
  ******************************************************************************/
 package org.jboss.tools.vpe.ui.bot.test.smoke;
 
+import java.awt.event.KeyEvent;
 import java.util.LinkedList;
 import java.util.List;
 
@@ -18,6 +19,7 @@
 import org.jboss.tools.ui.bot.ext.SWTTestExt;
 import org.jboss.tools.ui.bot.ext.Timing;
 import org.jboss.tools.ui.bot.ext.helper.ContentAssistHelper;
+import org.jboss.tools.ui.bot.ext.helper.KeyboardHelper;
 import org.jboss.tools.ui.bot.ext.parts.ContentAssistBot;
 import org.jboss.tools.ui.bot.ext.parts.SWTBotEditorExt;
 import org.jboss.tools.vpe.ui.bot.test.editor.VPEEditorTestCase;
@@ -73,6 +75,9 @@
     // Check content assist insertion    
     String contentAssistToUse = "h:commandButton"; 
     contentAssist.checkContentAssist(contentAssistToUse, true);
+    // close Content Assist window which is automatically opened after previous
+    // Content Assist choice were applied
+    KeyboardHelper.pressKeyCode(editor.bot().getDisplay(), KeyEvent.VK_ESCAPE);
     editor.save();
     String expectedInsertedText = textForSelection + "<" + contentAssistToUse + " action=\"\" value=\"\" />";
     if (!editor.getText().contains(expectedInsertedText)){



More information about the jbosstools-commits mailing list