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

closed/java/awt/Dialog/FileDialogIconTest/FileDialogIconTest behaves differently - Dialog icon changes when Frame icon changes

XMLWordPrintable

    • x86
    • windows_8

      Testsuite name: Awt Regression
      Test name(s): closed/java/awt/Dialog/FileDialogIconTest/FileDialogIconTest.html
      Product(s) tested: JDK 9 b124
      OS/architecture: Win8.1-x64/Jtreg4.2b02

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

      Is it a Regression:YES
      [If Regression] Regression introduced in release/build: On the same platform JDK9b124:Failed
                       (JDK9b120 on the same platform:Passed;
                        JDK9b121 on the same platform:Passed;
                        JDK9b122 on the same platform:Passed;
                        JDK9b123 on the same platform:Passed.)
      Test result on the last GAed release for this train:
      [if Fail] Test result on FCS:

      Is it a platform specific issue:YES(The same build on oel7.1-x64:Failed as JDK-8055801;
                                                           The same build on solaris11.3-x64:Passed;
                                                           The same build on mac10.11-x64:Failed as JDK-8055801;
                                                           The same build on solaris11.3-sparc:Passed.)
       [If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing:
       [If new configuration testing] Issue specific to execution mode or OS/browser version:

      Steps to reproduce:
      1. Download regression workspace locate at c:/regression
      2. Install test bundle JDK9b124(64bit) locate at c:/Java/jdk-9
      3. Install stable JDK8u51b15(64bit) locate at c:/Java/jdk1.8.0_51
      4. Download and unzip Jtreg locate at c:/regression
      5. Create the script regression.sh as follows and run it
      export JT_JAVA=c:/Java/jdk1.8.0_51
      c:/regression/jtreg/bin/jtreg -v -m -ignore:quiet -jdk:c:/Java/jdk-9 -r:c:/regression/results/reportDir -w c:/regression/results/workDir c:/regression/ws/jdk/test/closed/java/awt/Dialog/FileDialogIconTest/FileDialogIconTest.html

      Case Instruction:
      This is a manual test for FileDialog.You would see a number of buttons in a Frame.Try to open each type of FileDialog.Then change Icon on a Frame and try again.(Be sure that Icon is changed for the Frame.)Then change Icons on a Frame and try again.(Be sure that Icon is changed for the Frame.)Then change Icon on a Dialog and try again.Then change Icons on a Dialog and try again.In all cases you should see the same default icon on a Dialog. If so, press Pass. Fail otherwise.

      Actual behavior:
      First,When the case load,clicking every dialog button to show the dialog,the dialog didn't have icon,refer to first.jpg.Second, clicking on the fitst button "setIconImageToFrame",the icon on the frame will be changed,and open the different dialog,the icon of the dialog has changed too,refer to second.jpg.Third,clicking on the second button "setIconImageToFrame",the icon on the frame will be changed,and open the different dialog,the icon of the dialog has changed too,refer to third.jpg

        1. first.jpg
          first.jpg
          215 kB
        2. second.jpg
          second.jpg
          221 kB
        3. third.jpg
          third.jpg
          217 kB

            Unassigned Unassigned
            michaelw Michael Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: