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

sanity/client/SwingSet/src/ScrollPaneDemoTest.java fails on Linux

    Details

      Description

      a partial log is below :
      Trace:
      Start to wait frame "Frame with title "JScrollPane Demo"" opened
      Trace:
      Frame "Frame with title "JScrollPane Demo"" has been opened in 0 milliseconds
          javax.swing.JFrame[frame3,593,313,790x600,invalid,layout=java.awt.BorderLayout,title=JScrollPane Demo,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,5,25,790x570,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@4882331a,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
      Trace:
      Start to wait action "Wait Any javax.swing.JScrollPane loaded (ComponentOperator.WaitComponentTimeout)"
      Trace:
      "Wait Any javax.swing.JScrollPane loaded (ComponentOperator.WaitComponentTimeout)" action has been produced in 8 milliseconds with result
          : com.sun.swingset3.demos.scrollpane.ScrollPaneDemo$ImageScroller[,0,0,790x570,layout=javax.swing.ScrollPaneLayout$UIResource,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@59849ddf,flags=328,maximumSize=,minimumSize=,preferredSize=,columnHeader=javax.swing.JViewport[,20,0,751x20,layout=javax.swing.ViewportLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=25165832,maximumSize=,minimumSize=,preferredSize=,isViewSizeSet=true,lastPaintPosition=java.awt.Point[x=-114,y=0],scrollUnderway=false],horizontalScrollBar=javax.swing.JScrollPane$ScrollBar[,20,551,751x19,layout=javax.swing.plaf.synth.SynthScrollBarUI,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@4e1cac6f,flags=4194624,maximumSize=,minimumSize=,preferredSize=,blockIncrement=10,orientation=HORIZONTAL,unitIncrement=1],horizontalScrollBarPolicy=HORIZONTAL_SCROLLBAR_AS_NEEDED,lowerLeft=javax.swing.JLabel[,0,551,20x19,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@6031088a,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=Lower Left Row Header Corner,disabledIcon=,horizontalAlignment=CENTER,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=,verticalAlignment=CENTER,verticalTextPosition=CENTER],lowerRight=,rowHeader=javax.swing.JViewport[,0,20,20x531,layout=javax.swing.ViewportLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=25165832,maximumSize=,minimumSize=,preferredSize=,isViewSizeSet=true,lastPaintPosition=java.awt.Point[x=0,y=-90],scrollUnderway=false],upperLeft=javax.swing.JLabel[,0,0,20x20,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@748fc234,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=Upper Left Corner,disabledIcon=,horizontalAlignment=CENTER,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=,verticalAlignment=CENTER,verticalTextPosition=CENTER],upperRight=javax.swing.JLabel[,771,0,19x20,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@5fdb671e,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=Upper Right Column Header Corner,disabledIcon=,horizontalAlignment=CENTER,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=,verticalAlignment=CENTER,verticalTextPosition=CENTER],verticalScrollBar=javax.swing.JScrollPane$ScrollBar[,771,20,19x531,layout=javax.swing.plaf.synth.SynthScrollBarUI,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@4b19b812,flags=4194624,maximumSize=,minimumSize=,preferredSize=,blockIncrement=10,orientation=VERTICAL,unitIncrement=1],verticalScrollBarPolicy=VERTICAL_SCROLLBAR_AS_NEEDED,viewport=javax.swing.JViewport[,21,21,749x529,layout=javax.swing.ViewportLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=25165832,maximumSize=,minimumSize=,preferredSize=,isViewSizeSet=true,lastPaintPosition=java.awt.Point[x=-114,y=-90],scrollUnderway=false],viewportBorder=javax.swing.plaf.synth.SynthScrollPaneUI$ViewportBorder@52c8dc44]
      Initial Vertical Value = 90
      Initial HoriZontal Value = 114
      Trace:
      Scroll JScrollPane to bottom
      com.sun.swingset3.demos.scrollpane.ScrollPaneDemo$ImageScroller[,0,0,790x570,layout=javax.swing.ScrollPaneLayout$UIResource,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@59849ddf,flags=328,maximumSize=,minimumSize=,preferredSize=,columnHeader=javax.swing.JViewport[,20,0,751x20,layout=javax.swing.ViewportLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=25165832,maximumSize=,minimumSize=,preferredSize=,isViewSizeSet=true,lastPaintPosition=java.awt.Point[x=-114,y=0],scrollUnderway=false],horizontalScrollBar=javax.swing.JScrollPane$ScrollBar[,20,551,751x19,layout=javax.swing.plaf.synth.SynthScrollBarUI,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@4e1cac6f,flags=4194624,maximumSize=,minimumSize=,preferredSize=,blockIncrement=10,orientation=HORIZONTAL,unitIncrement=1],horizontalScrollBarPolicy=HORIZONTAL_SCROLLBAR_AS_NEEDED,lowerLeft=javax.swing.JLabel[,0,551,20x19,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@6031088a,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=Lower Left Row Header Corner,disabledIcon=,horizontalAlignment=CENTER,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=,verticalAlignment=CENTER,verticalTextPosition=CENTER],lowerRight=,rowHeader=javax.swing.JViewport[,0,20,20x531,layout=javax.swing.ViewportLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=25165832,maximumSize=,minimumSize=,preferredSize=,isViewSizeSet=true,lastPaintPosition=java.awt.Point[x=0,y=-90],scrollUnderway=false],upperLeft=javax.swing.JLabel[,0,0,20x20,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@748fc234,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=Upper Left Corner,disabledIcon=,horizontalAlignment=CENTER,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=,verticalAlignment=CENTER,verticalTextPosition=CENTER],upperRight=javax.swing.JLabel[,771,0,19x20,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@5fdb671e,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=Upper Right Column Header Corner,disabledIcon=,horizontalAlignment=CENTER,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=,verticalAlignment=CENTER,verticalTextPosition=CENTER],verticalScrollBar=javax.swing.JScrollPane$ScrollBar[,771,20,19x531,layout=javax.swing.plaf.synth.SynthScrollBarUI,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@4b19b812,flags=4194624,maximumSize=,minimumSize=,preferredSize=,blockIncrement=10,orientation=VERTICAL,unitIncrement=1],verticalScrollBarPolicy=VERTICAL_SCROLLBAR_AS_NEEDED,viewport=javax.swing.JViewport[,21,21,749x529,layout=javax.swing.ViewportLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=25165832,maximumSize=,minimumSize=,preferredSize=,isViewSizeSet=true,lastPaintPosition=java.awt.Point[x=-114,y=-90],scrollUnderway=false],viewportBorder=javax.swing.plaf.synth.SynthScrollPaneUI$ViewportBorder@52c8dc44]
      Activate window
          javax.swing.JFrame[frame3,593,313,790x600,layout=java.awt.BorderLayout,title=JScrollPane Demo,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,0,30,790x570,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@4882331a,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
      Final Value = 0
      disposeAllWindows
      test ScrollPaneDemoTest.test("com.sun.java.swing.plaf.gtk.GTKLookAndFeel"): failure
      java.lang.AssertionError: Scroll to Bottom of Pane (initialVerticalValue, actual value: 90 < currentValue, actual value = 0)
      at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
      at org.testng.AssertJUnit.assertTrue(AssertJUnit.java:24)
      at ScrollPaneDemoTest.test(ScrollPaneDemoTest.java:74)
      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/ScrollPaneDemoTest.java
      Total tests run: 4, Failures: 1, Skips: 0
      ===============================================

      ----------System.err:(14/858)----------
      java.lang.Exception: failures: 1
      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: 1
      JavaTest Message: shutting down test

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

        Attachments

          Issue Links

            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: