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

Test javax/swing/JButton/SwingButtonResizeTestWithOpenGL.java#id fails: Button renderings are different after window resize

XMLWordPrintable

      Fix for JDK-8339233 addressed failurtes seen on Windows but now this is Linux-x64

      ----------System.out:(10/1020)----------
      Button focus gained...
      Getting initial button image..image1
      Button loc: java.awt.Point[x=205,y=242]
      Frame is maximized
      Frame is back to normal
      Getting image of JButton after resize..image2
      Button loc: java.awt.Point[x=205,y=242]
      Taking the diff of two images, image1 and image2
      Saving button image to /opt/mach5/mesos/work_dir/slaves/ccd15758-3c17-44a6-a32a-40698b0633d8-S19247/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5bcc8452-b2d3-4e24-a953-1f2ad8084fcd/runs/f93cdf54-23ed-408e-b22b-ca5dc4b14349/testoutput/test-support/jtreg_open_test_jdk_jdk_desktop_part1/javax/swing/JButton/SwingButtonResizeTestWithOpenGL_id0/image1.png
      Saving button image to /opt/mach5/mesos/work_dir/slaves/ccd15758-3c17-44a6-a32a-40698b0633d8-S19247/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5bcc8452-b2d3-4e24-a953-1f2ad8084fcd/runs/f93cdf54-23ed-408e-b22b-ca5dc4b14349/testoutput/test-support/jtreg_open_test_jdk_jdk_desktop_part1/javax/swing/JButton/SwingButtonResizeTestWithOpenGL_id0/image2.png
      ----------System.err:(12/908)----------
      java.lang.RuntimeException: Button renderings are different after window resize, num of Diff Pixels=89108
      at SwingButtonResizeTestWithOpenGL.runTest(SwingButtonResizeTestWithOpenGL.java:171)
      at SwingButtonResizeTestWithOpenGL.main(SwingButtonResizeTestWithOpenGL.java:119)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:573)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1576)

        1. diffImage.png
          7 kB
          Harshitha Onkar
        2. image1.png
          2 kB
          Harshitha Onkar
        3. image2.png
          4 kB
          Harshitha Onkar

            mvs Manukumar V S
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: