equal
deleted
inserted
replaced
32 |
32 |
33 import java.awt.Dimension; |
33 import java.awt.Dimension; |
34 import java.awt.Point; |
34 import java.awt.Point; |
35 |
35 |
36 import javax.swing.ToolTipManager; |
36 import javax.swing.ToolTipManager; |
|
37 import javax.swing.UIManager; |
37 |
38 |
38 import org.jtregext.GuiTestListener; |
39 import org.jtregext.GuiTestListener; |
39 import org.netbeans.jemmy.ClassReference; |
40 import org.netbeans.jemmy.ClassReference; |
40 import org.netbeans.jemmy.operators.JComponentOperator; |
41 import org.netbeans.jemmy.operators.JComponentOperator; |
41 import org.netbeans.jemmy.operators.JFrameOperator; |
42 import org.netbeans.jemmy.operators.JFrameOperator; |
73 * on mouse press, tooltip text, location, number of tooltips shown at a |
74 * on mouse press, tooltip text, location, number of tooltips shown at a |
74 * time with different tooltip texts plain, html and styled. |
75 * time with different tooltip texts plain, html and styled. |
75 * |
76 * |
76 * @throws Exception |
77 * @throws Exception |
77 */ |
78 */ |
78 @Test |
79 @Test(dataProvider = "availableLookAndFeels", dataProviderClass = TestHelpers.class) |
79 public void test() throws Exception { |
80 public void test(String lookAndFeel) throws Exception { |
|
81 UIManager.setLookAndFeel(lookAndFeel); |
80 new ClassReference(ToolTipDemo.class.getCanonicalName()).startApplication(); |
82 new ClassReference(ToolTipDemo.class.getCanonicalName()).startApplication(); |
81 JFrameOperator frameOperator = new JFrameOperator(DEMO_TITLE); |
83 JFrameOperator frameOperator = new JFrameOperator(DEMO_TITLE); |
82 frameOperator.setComparator(EXACT_STRING_COMPARATOR); |
84 frameOperator.setComparator(EXACT_STRING_COMPARATOR); |
83 // Setting the tooltip dismiss delay |
85 // Setting the tooltip dismiss delay |
84 ToolTipManager.sharedInstance().setDismissDelay(TOOLTIP_DISMISS_DELAY); |
86 ToolTipManager.sharedInstance().setDismissDelay(TOOLTIP_DISMISS_DELAY); |