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

[macosx] Checking the "wrap line" checkbox can’t make lines to be wrapped.

XMLWordPrintable

    • x86
    • os_x

      Testsuite name:JCK manual
      Test name:api/javax_swing/interactive/JTextAreaTests.html#JTextArea
      Product tested: JDK 9 b65(64bit)
      OS/architecture:OS/architecture: Mac10.10-x64 (Processor:2.5GHz Intel Core i5;Memory:4 GB 1600 MHz DDR3)
       
      Error log file:http://aurora-ds3.us.oracle.com:9502/runs/00912/912328.ManualSubmit/912328.ManualSubmit-1/workDir/api/javax_swing/interactive/JTextAreaTests_JTextArea.jtr

      Reproducible: Always
      Reproducible on machine: Evergreen-machine
      [If Sometimes] Also reproducible on machine:

      Is it a Regression: Yes
      [If Regression] Regression introduced in release/build:JDK9b65(64bit) Failed,but JDK9b64(64bit) on same platform Passed.
      Test result on the last GAed release for this train:Pass(JDK8u45b34(64bit) on same platform with JCK9 workspace Passed)
      [if Fail] Test result on FCS:

      Is it a platform specific issue:No
      (windows,linux,solaris,solaris-spare doesn’t support AquaLAF)
       (same build on mac10.9-x64 without options Failed,
       same build on win7-p1-x64 without options Failed,
       same build on oel6.4-x64 without options Failed,
       same build on solaris11.2-x64 without options Failed,
       same build on solaris11-sparc without options Failed)
      Is it a new (previously unsupported) OS/browser/mode testing: No
      [If new configuration testing] Issue specific to execution mode or OS/browser version:

      Steps to reproduce:
      1. Install test bundle jdk9b65 from http://jre.us.oracle.com/java/re/jdk/9/promoted/all/b65/bundles/macosx-x86_64/jdk-9-ea-macosx-x86_64.dmg to /Library/Java/JavaVirtualMachines/
      2. Download the JCK-runtime-9.jar from http://jre.us.oracle.com/java/re/jck/9/promoted/latest/bundles/ to /var/root/workspace/jck/ and use /Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/bin/java -jar JCK-runtime-9.jar to unzip it
      3.Run the following command:
      /Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/bin/java -showversion -client -Xcomp -Xbatch -d64 -Dswing.defaultlaf=com.apple.laf.AquaLookAndFeel -cp /private/var/root/workspace/jck/JCK-runtime-9/classes:/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home -Xfuture -Djava.security.policy=/private/var/root/workspace/jck/JCK-runtime-9/lib/jck.policy javasoft.sqe.tests.api.javax.swing.interactive.JTextArea.JTextAreaTests -TestCaseID ALL

      Descriptions:
      This test verifies the behavior of the setLineWrap() method.A JTextArea and a "Wrap lines" checkbox are shown below.Please verify that the checkbox is initially unchecked,and that lines do not wrap if they are too long to fit within the allocated width.Please verify that the line wrapping policy of the textarea is turned on/off when the checkbox is selected/de-selected.Does the textarea behave as specified above?"

      Actual behavior:
      1.When the case launching,the checkbox is unchecked,lines do not wrap if they are too long to fit within the allocated width.refer to TextArea.jpg.
      2.Check the checkbox,a scrollbar will run left automatically and it always stays in a line,we can’t see the lines wrap.refer to TextArea1.jpg.
      3.It isn’t the LAF issue.

      Validation:
      JDK9b60(64bit) on same platform Passed.
      JDK9b64(64bit) on same platform Passed.

        1. TextArea.jpg
          43 kB
          Tony Li
        2. TextArea1.jpg
          20 kB
          Tony Li

            alexsch Alexandr Scherbatiy
            tolli Tony Li (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: