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

[macosx] Press "To Back" button on the Dialog,the Dialog moves behind the Frame

    Details

    • Subcomponent:
    • Resolved In Build:
      b133
    • CPU:
      x86
    • OS:
      os_x
    • Verification:
      Verified

      Backports

        Description

        Testsuite name:AWT function
        Test name(s):AWT_TopLevels/TopLevelMiscellaneous/Manual/WindowToBackTests_05
        Product(s) tested:JDK8u102b32(64bit)
        OS/architecture: mac10.10-x64, mac10.11-x64

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

        Is it a Regression: YES (test passes on 8u102b08 and 8u102b31)
        [If Regression] Regression introduced in release/build: 8u102b32
        Test result on the last GAed release for this train: 8u102b31
        [if Fail] Test result on FCS: PASS

        Is it a platform specific issue: YES
        [If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing: not new
        [If new configuration testing] Issue specific to execution mode or OS/browser version: OS X 10.10, 10.11 (test PASSES on Win8.1)

        Steps to reproduce:
        1.Install stable jdk8u51b15(64bit) locate at /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk
        2.Install base jdk8u102b31(64bit) locate at /Library/Java/JavaVirtualMachines/jdk1.8.0_102_b31.jdk
        3.Install test jdk8u102b32(64bit) locate at /Library/Java/JavaVirtualMachines/jdk1.8.0_102_b32.jdk
        4.Install awt worksoace locate at /var/root/Desktop/awt/ws
        5.Install ute local at /var/root/Desktop/awt
        6.Add attachment testlist.fail to /var/root/Desktop/awt
        7.Create results at /var/root/Desktop/awt
        8.Modify the test_awt.sh as:
        /var/root/Desktop/awt/ute/ute run -harness tonga -env TONGA_MAIN_CLASS=Tonga -env KEYWORDS=manual -env BASEBUILD="/Library/Java/JavaVirtualMachines/jdk1.8.0_102_b31.jdk/Contents/Home" -env STABLE_JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home" -component awt -jdk "/Library/Java/JavaVirtualMachines/jdk1.8.0_102_b32.jdk/Contents/Home" -testbase /var/root/Desktop/awt/ws/awt/ -testlist /var/root/Desktop/awt/testlist.fail -results /var/root/Desktop/awt/results
        9. Go to /var/root/awt and run the command : bash test_awt.sh
         
        Case Instruction:
        Note : Incase of Assertion failure user can enter any remarks by pressing 'Assertion Fail Remarks'.
        1. After the Frame and Dialog are displayed
        2. Press To Back button on Dialog.
        3. If Dialog moves behind the frame then fail the test.else click assertion passed

        Actual behavior:
        Press "To Back" button on the Dialog,the Dialog moves behind the Frame,refer to back.jpg.
        1. testlist.fail
          0.1 kB
          Tony Li
        2. WindowToBackTest.java
          2 kB
          Dmitry Markov
        1. back.jpg
          291 kB

          Issue Links

            Activity

            Hide
            dmarkov Dmitry Markov added a comment -
            testcase attached
            Show
            dmarkov Dmitry Markov added a comment - testcase attached
            Hide
            dmarkov Dmitry Markov added a comment -
            Problem description:
            If toBack() method is invoked on dialog/frame which has not-null owner, the dialog/frame will be ordered below its owner/parent.

            Fix:
            The following methods in AWTWindow.m should be modified:
             - nativePushNSWindowToBack() add logic to perform a proper ordering for parent/child windows.
             - sendEvent() add logic to move parent windows to front and make sure that child windows are displayed above their nearest parents when the window is clicked by a mouse.
            Show
            dmarkov Dmitry Markov added a comment - Problem description: If toBack() method is invoked on dialog/frame which has not-null owner, the dialog/frame will be ordered below its owner/parent. Fix: The following methods in AWTWindow.m should be modified:  - nativePushNSWindowToBack() add logic to perform a proper ordering for parent/child windows.  - sendEvent() add logic to move parent windows to front and make sure that child windows are displayed above their nearest parents when the window is clicked by a mouse.
            Hide
            dmarkov Dmitry Markov added a comment -
            The problem was triggered by JDK-8080729
            Show
            dmarkov Dmitry Markov added a comment - The problem was triggered by JDK-8080729
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/8e78c621a64d
            User: dmarkov
            Date: 2016-08-16 08:14:30 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/8e78c621a64d User: dmarkov Date: 2016-08-16 08:14:30 +0000
            Hide
            mkhramov Maksim Khramov (Inactive) added a comment -
            RULE "AWT_Modality/Automated/FileDialog/DocumentModalDialog" ExitCode 1
            RULE "AWT_Modality/Automated/FileDialog/NonModalDialog" ExitCode 1
            RULE "AWT_Modality/Automated/ToFront/ModelessModalDialog" ExitCode 1
            RULE "AWT_Modality/Automated/ToFront/NonModalDialog" ExitCode 1
            Show
            mkhramov Maksim Khramov (Inactive) added a comment - RULE "AWT_Modality/Automated/FileDialog/DocumentModalDialog" ExitCode 1 RULE "AWT_Modality/Automated/FileDialog/NonModalDialog" ExitCode 1 RULE "AWT_Modality/Automated/ToFront/ModelessModalDialog" ExitCode 1 RULE "AWT_Modality/Automated/ToFront/NonModalDialog" ExitCode 1
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/8e78c621a64d
            User: lana
            Date: 2016-08-24 21:12:56 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/8e78c621a64d User: lana Date: 2016-08-24 21:12:56 +0000
            Hide
            tonyli Tony Li added a comment -
            JDK8u102b33(64bit)/Mac10.11 x64 no this issue.
            Show
            tonyli Tony Li added a comment - JDK8u102b33(64bit)/Mac10.11 x64 no this issue.

              People

              • Assignee:
                dmarkov Dmitry Markov
                Reporter:
                tonyli Tony Li
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: