8214471: Enable different look and feel tests in SwingSet3 demo test ToolTipDemoTest

Reviewed-by: serb, shurailine
This commit is contained in:
Abdul Kolarkunnu 2019-01-15 22:54:08 -08:00
parent b107fdbd58
commit 19ad6151a2

View File

@ -34,6 +34,7 @@ import java.awt.Dimension;
import java.awt.Point; import java.awt.Point;
import javax.swing.ToolTipManager; import javax.swing.ToolTipManager;
import javax.swing.UIManager;
import org.jtregext.GuiTestListener; import org.jtregext.GuiTestListener;
import org.netbeans.jemmy.ClassReference; import org.netbeans.jemmy.ClassReference;
@ -75,8 +76,9 @@ public class ToolTipDemoTest {
* *
* @throws Exception * @throws Exception
*/ */
@Test @Test(dataProvider = "availableLookAndFeels", dataProviderClass = TestHelpers.class)
public void test() throws Exception { public void test(String lookAndFeel) throws Exception {
UIManager.setLookAndFeel(lookAndFeel);
new ClassReference(ToolTipDemo.class.getCanonicalName()).startApplication(); new ClassReference(ToolTipDemo.class.getCanonicalName()).startApplication();
JFrameOperator frameOperator = new JFrameOperator(DEMO_TITLE); JFrameOperator frameOperator = new JFrameOperator(DEMO_TITLE);
frameOperator.setComparator(EXACT_STRING_COMPARATOR); frameOperator.setComparator(EXACT_STRING_COMPARATOR);