Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8225012

sanity/client/SwingSet/src/ToolTipDemoTest.java fails on Windows

    Details

      Description

      java version "13-internal" 2019-09-17
      Java(TM) SE Runtime Environment (build 13-internal+0-2019-05-16-0724573.philip.race.nightly-headful)
      Java HotSpot(TM) 64-Bit Server VM (build 13-internal+0-2019-05-16-0724573.philip.race.nightly-headful, mixed mode, sharing)


      There are 5 failures within the test as some kind of time out
      the tail end of the log is below.
      Trace:
      Start to wait frame "Frame with title "ToolTips Demo"" opened
      Trace:
      Frame "Frame with title "ToolTips Demo"" has been opened in 0 milliseconds
          javax.swing.JFrame[frame4,560,280,800x600,layout=java.awt.BorderLayout,title=ToolTips Demo,resizable,normal,defaultCloseOperation=EXIT_ON_CLOSE,rootPane=javax.swing.JRootPane[,8,31,784x561,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
      Trace:
      Start to wait action "Wait JLabel with text "<html><p align="center">Roll over here<br>to see a tooltip</p></html>" loaded (ComponentOperator.WaitComponentTimeout)"
      Trace:
      "Wait JLabel with text "<html><p align="center">Roll over here<br>to see a tooltip</p></html>" loaded (ComponentOperator.WaitComponentTimeout)" action has been produced in 1 milliseconds with result
          : javax.swing.JLabel[,44,0,186x128,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=CENTER,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=<html><p align="center">Roll over here<br>to see a tooltip</p></html>,verticalAlignment=CENTER,verticalTextPosition=CENTER]
      Wait "A simple one line tip." tip text in JToolTip
          : javax.swing.JToolTip[,0,0,118x18,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.BorderUIResource$LineBorderUIResource@54b6cddd,flags=16777224,maximumSize=,minimumSize=,preferredSize=,tipText=A simple one line tip.]
      Trace:
      Start to wait action "Wait JLabel with text "<html><p align="center">Roll over this box<br>to see a tooltip<br>in HTML</p></html>" loaded (ComponentOperator.WaitComponentTimeout)"
      Trace:
      "Wait JLabel with text "<html><p align="center">Roll over this box<br>to see a tooltip<br>in HTML</p></html>" loaded (ComponentOperator.WaitComponentTimeout)" action has been produced in 1 milliseconds with result
          : javax.swing.JLabel[,240,134,186x186,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=CENTER,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=<html><p align="center">Roll over this box<br>to see a tooltip<br>in HTML</p></html>,verticalAlignment=CENTER,verticalTextPosition=CENTER]
      Wait "<html><body bgcolor="#AABBFF">In case you thought that tooltips had to be<p>boring, one line descriptions, the <font color=blue size=+2>Swing!</font> team<p>is happy to shatter your illusions.<p>In Swing, you can use HTML to <ul><li>Have Lists<li><b>Bold</b> text<li><em>emphasized</em>text<li>text with <font color=red>Color</font><li>text in different <font size=+3>sizes</font><li>and <font face=AvantGarde>Fonts</font></ul>Oh, and they can be multi-line, too.</body></html>" tip text in JToolTip
          : javax.swing.JToolTip[,0,0,284x246,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.BorderUIResource$LineBorderUIResource@54b6cddd,flags=16777224,maximumSize=,minimumSize=,preferredSize=,tipText=<html><body bgcolor="#AABBFF">In case you thought that tooltips had to be<p>boring, one line descriptions, the <font color=blue size=+2>Swing!</font> team<p>is happy to shatter your illusions.<p>In Swing, you can use HTML to <ul><li>Have Lists<li><b>Bold</b> text<li><em>emphasized</em>text<li>text with <font color=red>Color</font><li>text in different <font size=+3>sizes</font><li>and <font face=AvantGarde>Fonts</font></ul>Oh, and they can be multi-line, too.</body></html>]
      Trace:
      Start to wait action "Wait JLabel with text "<html><p align="center">Roll over here
      to see a tooltip<br> in styled text</p></html>" loaded (ComponentOperator.WaitComponentTimeout)"
      Trace:
      "Wait JLabel with text "<html><p align="center">Roll over here
      to see a tooltip<br> in styled text</p></html>" loaded (ComponentOperator.WaitComponentTimeout)" action has been produced in 0 milliseconds with result
          : javax.swing.JLabel[,45,327,188x134,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=CENTER,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=<html><p align="center">Roll over here
      to see a tooltip<br> in styled text</p></html>,verticalAlignment=CENTER,verticalTextPosition=CENTER]
      Wait "<html>Tips can be styled to be<br><b>interesting</b> and <i>fun</i></html>" tip text in JToolTip
          : javax.swing.JToolTip[,0,0,131x34,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.BorderUIResource$LineBorderUIResource@54b6cddd,flags=16777224,maximumSize=,minimumSize=,preferredSize=,tipText=<html>Tips can be styled to be<br><b>interesting</b> and <i>fun</i></html>]
      Resizing frame
          javax.swing.JFrame[frame4,560,280,800x600,invalid,layout=java.awt.BorderLayout,title=ToolTips Demo,resizable,normal,defaultCloseOperation=EXIT_ON_CLOSE,rootPane=javax.swing.JRootPane[,8,31,784x561,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
      Trace:
      Start to wait action "Wait JLabel with text "<html><p align="center">Roll over this box<br>to see a tooltip<br>in HTML</p></html>" loaded (ComponentOperator.WaitComponentTimeout)"
      Trace:
      "Wait JLabel with text "<html><p align="center">Roll over this box<br>to see a tooltip<br>in HTML</p></html>" loaded (ComponentOperator.WaitComponentTimeout)" action has been produced in 5 milliseconds with result
          : javax.swing.JLabel[,240,134,186x186,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=CENTER,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=<html><p align="center">Roll over this box<br>to see a tooltip<br>in HTML</p></html>,verticalAlignment=CENTER,verticalTextPosition=CENTER]
      disposeAllWindows
      test ToolTipDemoTest.test("com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"): failure
      org.netbeans.jemmy.TimeoutExpiredException: Wait for JTooltip to be displayed for Component = org.netbeans.jemmy.operators.JLabelOperator@584227f5, chooser = TrueChooser{description=Any JToolTip} (JToolTipOperator.WaitToolTipTimeout)
      at org.netbeans.jemmy.Waiter.waitAction(Waiter.java:210)
      at org.netbeans.jemmy.operators.JToolTipOperator.waitJToolTip(JToolTipOperator.java:321)
      at org.netbeans.jemmy.operators.JToolTipOperator.waitJToolTip(JToolTipOperator.java:268)
      at org.netbeans.jemmy.operators.JComponentOperator.waitToolTip(JComponentOperator.java:309)
      at org.netbeans.jemmy.operators.JComponentOperator.showToolTip(JComponentOperator.java:305)
      at ToolTipDemoTest.checkToolTip(ToolTipDemoTest.java:123)
      at ToolTipDemoTest.test(ToolTipDemoTest.java:104)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      at org.testng.TestRunner.privateRun(TestRunner.java:773)
      at org.testng.TestRunner.run(TestRunner.java:623)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
      at org.testng.SuiteRunner.run(SuiteRunner.java:259)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
      at org.testng.TestNG.run(TestNG.java:1018)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:830)

      ===============================================
      sanity/client/SwingSet/src/ToolTipDemoTest.java
      Total tests run: 5, Failures: 5, Skips: 0
      ===============================================

      ----------System.err:(24/2131)----------
      Error:
      "Wait for JTooltip to be displayed for Component = org.netbeans.jemmy.operators.JLabelOperator@72b44bc4, chooser = TrueChooser{description=Any JToolTip} (JToolTipOperator.WaitToolTipTimeout)" action has not been produced in 60014 milliseconds
      Error:
      "Wait for JTooltip to be displayed for Component = org.netbeans.jemmy.operators.JLabelOperator@41efd3e2, chooser = TrueChooser{description=Any JToolTip} (JToolTipOperator.WaitToolTipTimeout)" action has not been produced in 60016 milliseconds
      Error:
      "Wait for JTooltip to be displayed for Component = org.netbeans.jemmy.operators.JLabelOperator@4074470, chooser = TrueChooser{description=Any JToolTip} (JToolTipOperator.WaitToolTipTimeout)" action has not been produced in 60003 milliseconds
      Error:
      "Wait for JTooltip to be displayed for Component = org.netbeans.jemmy.operators.JLabelOperator@36ddda9b, chooser = TrueChooser{description=Any JToolTip} (JToolTipOperator.WaitToolTipTimeout)" action has not been produced in 60015 milliseconds
      Error:
      "Wait for JTooltip to be displayed for Component = org.netbeans.jemmy.operators.JLabelOperator@584227f5, chooser = TrueChooser{description=Any JToolTip} (JToolTipOperator.WaitToolTipTimeout)" action has not been produced in 60001 milliseconds
      java.lang.Exception: failures: 5
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:830)

      JavaTest Message: Test threw exception: java.lang.Exception: failures: 5
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.Exception: failures: 5

        Attachments

          Activity

            People

            • Assignee:
              amrsahu Amresh Sahu
              Reporter:
              prr Philip Race
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: