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

test\java\awt\GridLayout\LayoutExtraGaps\LayoutExtraGaps.java fails on some screens

XMLWordPrintable

    • generic
    • linux

      The test test\java\awt\GridLayout\LayoutExtraGaps\LayoutExtraGaps.java fails on Linux Ubuntu as it decides that one of the Labels in the test has (0,0) coordinates. Believe it's a bug in test because if I change resolution (just move the TaskBar from top to right), test passes. Below is the test output.

      #Test Results (version 2)
      #Thu Oct 18 19:54:22 MSD 2007
      #checksum:e5cd8fe28760152
      #-----testdescription-----
      $file=/.automount/jse-st01/root/export3/awt/users/ad153231/dolphin_b19_n2/test/java/awt/GridLayout/LayoutExtraGaps/LayoutExtraGaps.java
      $root=/.automount/jse-st01/root/export3/awt/users/ad153231/dolphin_b19_n2/test
      author=Andrei Dmitriev : area=awt.layout
      keywords=bug4370316
      library=../../regtesthelpers
      run=USER_SPECIFIED build Util\nUSER_SPECIFIED main LayoutExtraGaps\n
      source=LayoutExtraGaps.java
      title=GridLayout does not fill its Container

      #-----environment-----

      #-----testresult-----
      description=file:///.automount/jse-st01/root/export3/awt/users/ad153231/dolphin_b19_n2/test/java/awt/GridLayout/LayoutExtraGaps/LayoutExtraGaps.java
      end=Thu Oct 18 19:54:22 MSD 2007
      environment=regtest
      execStatus=Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed. GridLayout doesn't center component.
      javatestOS=Linux 2.4.21-4.ELsmp (i386)
      javatestVersion=2.1.5
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile build main
      start=Thu Oct 18 19:54:19 MSD 2007
      status=Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed. GridLayout doesn't center component.
      test=java/awt/GridLayout/LayoutExtraGaps/LayoutExtraGaps.java
      work=/.automount/jse-st01/root/export3/awt/users/ad153231/dolphin_b19_n2/test/java/awt/JTwork/java/awt/GridLayout/LayoutExtraGaps

      #section:script_messages
      ----------messages:(4/213)----------
      JDK under test: (/net/archer/export5/re/jdk/7.0/latest/binaries/linux-i586)
      java version "1.7.0-ea"
      Java(TM) SE Runtime Environment (build 1.7.0-ea-b19)
      Java HotSpot(TM) Server VM (build 1.7.0-ea-b19, mixed mode)

      #section:build
      ----------messages:(3/98)----------
      command: build Util
      reason: User specified action: run build Util
      elapsed time (seconds): 1.051
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/238)----------
      command: compile /.automount/jse-st01/root/export3/awt/users/ad153231/dolphin_b19_n2/test/java/awt/GridLayout/LayoutExtraGaps/../../regtesthelpers/Util.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 1.049
      ----------System.out:(0/0)----------
      ----------System.err:(17/1745)----------
      result: Passed. Compilation successful

      #section:build
      ----------messages:(3/102)----------
      command: build LayoutExtraGaps
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0010
      result: Passed. No need to compile: LayoutExtraGaps.java

      #section:main
      ----------messages:(3/117)----------
      command: main LayoutExtraGaps
      reason: User specified action: run main LayoutExtraGaps
      elapsed time (seconds): 1.439
      ----------System.out:(4/297)----------
      firstHorizLabel bounds =java.awt.Rectangle[x=0,y=8,width=627,height=12]
      firstVertLabel bounds =java.awt.Rectangle[x=0,y=0,width=18,height=463]
      firstHorizLabel_RTL bounds =java.awt.Rectangle[x=0,y=8,width=627,height=12]
      firstVertLabel_RTL bounds =java.awt.Rectangle[x=609,y=0,width=18,height=463]
      ----------System.err:(14/863)----------
      java.lang.RuntimeException: Test failed. GridLayout doesn't center component.
      at LayoutExtraGaps.<init>(LayoutExtraGaps.java:108)
      at LayoutExtraGaps.main(LayoutExtraGaps.java:115)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:623)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:659)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed. GridLayout doesn't center component.
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test failed. GridLayout doesn't center component.
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed. GridLayout doesn't center component.


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed. GridLayout doesn't center component.

            Unassigned Unassigned
            dav Andrei Dmitriev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: