From 19ad6151a26bbf956b29b3d890e1fc8e9dfb6ab7 Mon Sep 17 00:00:00 2001 From: Abdul Kolarkunnu Date: Tue, 15 Jan 2019 22:54:08 -0800 Subject: [PATCH] 8214471: Enable different look and feel tests in SwingSet3 demo test ToolTipDemoTest Reviewed-by: serb, shurailine --- test/jdk/sanity/client/SwingSet/src/ToolTipDemoTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/jdk/sanity/client/SwingSet/src/ToolTipDemoTest.java b/test/jdk/sanity/client/SwingSet/src/ToolTipDemoTest.java index 9a6d7e1ccc7..5c8c159a6b2 100644 --- a/test/jdk/sanity/client/SwingSet/src/ToolTipDemoTest.java +++ b/test/jdk/sanity/client/SwingSet/src/ToolTipDemoTest.java @@ -34,6 +34,7 @@ import java.awt.Dimension; import java.awt.Point; import javax.swing.ToolTipManager; +import javax.swing.UIManager; import org.jtregext.GuiTestListener; import org.netbeans.jemmy.ClassReference; @@ -75,8 +76,9 @@ public class ToolTipDemoTest { * * @throws Exception */ - @Test - public void test() throws Exception { + @Test(dataProvider = "availableLookAndFeels", dataProviderClass = TestHelpers.class) + public void test(String lookAndFeel) throws Exception { + UIManager.setLookAndFeel(lookAndFeel); new ClassReference(ToolTipDemo.class.getCanonicalName()).startApplication(); JFrameOperator frameOperator = new JFrameOperator(DEMO_TITLE); frameOperator.setComparator(EXACT_STRING_COMPARATOR);