> The root cause of the bug is because mousePress() method is invoked before 
> mouseMove() event is completely processed causing the drag & drop behavior 
> not being able to be recognized properly. This in turn makes the method 
> dragSourceListener.isDropFinished() returns false and fail the test. To fix 
> this, setAutoWaitForIdle(true) and Thread.Sleep is called to make sure the 
> mouseMove() event is processed completely before moving to execute the 
> mousePress() method.
> 
> JBS issue: [JDK-8317287](https://bugs.openjdk.org/browse/JDK-8317287)

songpv-imt has updated the pull request incrementally with one additional 
commit since the last revision:

  Update InterJVMGetDropSuccessTest.java
  - Remove robot.setWaitForIdle(true) and add robot.waitForIdle() after 
mouseMove
  - Change FRAME_ACTIVATION_TIMEOUT to 1000
  - Remove unused pointInComponent and pointInComponentImpl methods
  - Use Java-style array declaration for successCodes
  - Use per-class imports instead of wildcard imports

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/16396/files
  - new: https://git.openjdk.org/jdk/pull/16396/files/83ad763b..16a1ec70

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=16396&range=09
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=16396&range=08-09

  Stats: 66 lines in 1 file changed: 23 ins; 33 del; 10 mod
  Patch: https://git.openjdk.org/jdk/pull/16396.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16396/head:pull/16396

PR: https://git.openjdk.org/jdk/pull/16396

Reply via email to