[Test bug] Update FileDialogIconTest.java

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 20, 22, 23, 24, 25
    • Component/s: client-libs
    • None
    • x86
    • generic

      java/awt/Dialog/FileDialogIconTest/FileDialogIconTest.java sets the same image for Frame & Dialog .

      Step to reproduce
      ----------------------------
      1) Run java/awt/Dialog/FileDialogIconTest/FileDialogIconTest.java
      2) Click on setIconImageToFrame observe that loading-msg image is displayed 3) Click on setIconImageToDialog observe that same loading-msg image is displayed . It feels that new image for setIconImageToDialog is not applied to Dialog.

      After checking the test case found that the same image is used for both the buttons https://github.com/openjdk/jdk/blob/master/test/jdk/java/awt/Dialog/FileDialogIconTest/FileDialogIconTest.java#L107

      Note: Button setIconBufferedImagesToDialog & setIconBufferedImagesToFrame is defined and action listener is also defined but never used.
      https://github.com/openjdk/jdk/blob/master/test/jdk/java/awt/Dialog/FileDialogIconTest/FileDialogIconTest.java#L98-L99

            Assignee:
            Harshitha Onkar
            Reporter:
            Lawrence Andrews
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: