Skip to content

8306871: Open source more AWT Drag & Drop tests #13725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

DamonGuy
Copy link
Contributor

@DamonGuy DamonGuy commented Apr 28, 2023

This PR open sources more AWT DnD & Event related tests


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/13725/head:pull/13725
$ git checkout pull/13725

Update a local copy of the PR:
$ git checkout pull/13725
$ git pull https://git.openjdk.org/jdk.git pull/13725/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 13725

View PR using the GUI difftool:
$ git pr show -t 13725

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/13725.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Apr 28, 2023

👋 Welcome back dnguyen! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot added the rfr Pull request is ready for review label Apr 28, 2023
@openjdk
Copy link

openjdk bot commented Apr 28, 2023

@DamonGuy The following label will be automatically applied to this pull request:

  • client

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the client client-libs-dev@openjdk.org label Apr 28, 2023
@mlbridge
Copy link

mlbridge bot commented Apr 28, 2023

Webrevs

@test
@bug 4343344
@summary Tests key modifiers when ALT_GRAPH key is pressed by Robot.
This test is for UNIX only.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this comment is confusing and should be removed since
(1) the test is only being excluded on mac which is actually Unix
(2) it is being run on Windows which most definitely isn't Unix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Section about "UNIX ONLY" removed.

Copy link
Contributor

@prrace prrace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the comment before integration

@openjdk
Copy link

openjdk bot commented Apr 28, 2023

@DamonGuy This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8306871: Open source more AWT Drag & Drop tests

Reviewed-by: prr

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 55 new commits pushed to the master branch:

  • fc76687: 8306836: Remove pinned tag for G1 heap regions
  • ccf91f8: 8306933: C2: "assert(false) failed: infinite loop" failure
  • e9807a4: 8306042: C2: failed: Missed optimization opportunity in PhaseCCP (adding LShift->Cast->Add notification)
  • fcb280a: 8305092: Improve Thread.sleep(millis, nanos) for sub-millisecond granularity
  • 891530f: 8307005: Make CardTableBarrierSet::initialize non-virtual
  • e0774be: 8306997: C2: "malformed control flow" assert due to missing safepoint on backedge with a switch
  • 462b1df: 8307106: Allow concurrent GCs to walk CLDG without ClassLoaderDataGraph_lock
  • c8f3756: 8306729: Add nominal descriptors of modules and packages to Constants API
  • 0b5b642: 8307150: RISC-V: Remove remaining StoreLoad barrier with UseCondCardMark for Serial/Parallel GC
  • 418a825: 8306466: Open source more AWT Drag & Drop related tests
  • ... and 45 more: https://git.openjdk.org/jdk/compare/9ff555083a1ba367ea157b8e1de28e62c1ce2f19...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Apr 28, 2023
}

protected void printKey(KeyEvent evt) {
switch(evt.getID()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
switch(evt.getID()) {
switch (evt.getID()) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

for (int i=0; i < modifierKeys.length; i++) {
if (modifierPress[i] == true) {
if ((kp.getModifiersEx() & inputMasks[i]) == inputMasks[i]) {
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
} else {
} else {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

}

static int getKeycode(int ctrl) {
switch(ctrl) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
switch(ctrl) {
switch (ctrl) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

}

static int getKeyModifier(int ctrl) {
switch(ctrl) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
switch(ctrl) {
switch (ctrl) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

}

static int getMouseModifier(int btn) {
switch(btn) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
switch(btn) {
switch (btn) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@DamonGuy
Copy link
Contributor Author

DamonGuy commented May 5, 2023

/integrate

@openjdk
Copy link

openjdk bot commented May 5, 2023

Going to push as commit b5a4827.
Since your change was applied there have been 95 commits pushed to the master branch:

  • 47422be: 8307375: Alignment check on layouts used as sequence element is not correct
  • 3968ab5: 8307395: Add missing STS to Shenandoah
  • 12d6ec6: 8307236: Rendezvous GC threads under STS for monitor deflation
  • 6fe959c: 8307306: Change some ConstantPool::name_ref_at calls to uncached_name_ref_at
  • 3f6a354: 8305169: java/security/cert/CertPathValidator/OCSP/GetAndPostTests.java -- test server didn't start in timely manner
  • f143bf7: 8305084: Remove the removal warnings for finalize() from test/hotspot/jtreg/serviceability/dcmd/gc/FinalizerInfoTest.java and RunFinalizationTest.java
  • 746f8d1: 8305714: Add an extra test for JDK-8292755
  • 1a1ce66: 8305080: Suppress the 'removal' warning for finalize() from test/hotspot/jtreg/compiler/jvmci/common/testcases that used in compiler/jvmci/compilerToVM/ tests
  • 3b430b9: 8250596: Update remaining manpage references from "OS X" to "macOS"
  • 948f3b3: 8301493: Replace NULL with nullptr in cpu/aarch64
  • ... and 85 more: https://git.openjdk.org/jdk/compare/9ff555083a1ba367ea157b8e1de28e62c1ce2f19...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label May 5, 2023
@openjdk openjdk bot closed this May 5, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels May 5, 2023
@openjdk
Copy link

openjdk bot commented May 5, 2023

@DamonGuy Pushed as commit b5a4827.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client client-libs-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants