-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8226933: [TEST_BUG]GTK L&F: There is no swatches or RGB tab in JColorChooser #20867
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
Conversation
|
👋 Welcome back abhiscxk! A progress list of the required criteria for merging this PR into |
|
@kumarabhi006 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: 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 762 new commits pushed to the
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 |
|
@kumarabhi006 The following label will be automatically applied to this pull request:
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. |
Webrevs
|
| then test passed, otherwise it failed."""; | ||
| then test passed, otherwise it failed. | ||
| NOTE: There is no Swatches tab for GTK Look and Feel, Press Pass."""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess better to restrict programmatically
"GTK".equals(UIManager.getLookAndFeel().getName())
Also, add a comment why it is not applicable..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess better to restrict programmatically "GTK".equals(UIManager.getLookAndFeel().getName()) Also, add a comment why it is not applicable..
For a manual test, it can be run by command line with Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel option. How could I restrict programmatically ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whatever L&F you are running on irrespective of manually or automated, it should be able to find out via getLookAndFeel..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, you are right. Test updated to throw jtreg.SkippedException if it is run for GTK L&F.
TejeshR13
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
|
@prsadhuk @TejeshR13 bug4419255.java is open sourced. Fixed similar issue for ColorChooser UI in GTK L&F. |
| // ColorChooser UI design is different for GTK L&F. | ||
| // There is no RGB tab available for GTK L&F, skip the testing. | ||
| if (UIManager.getLookAndFeel().getName().contains("GTK")) { | ||
| System.out.println("Test skipped for " + UIManager.getLookAndFeel().getName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
guess no need to enquire it again in as we know it's GTK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think print statement is not required, anyways it is captured in exception, so removed.
| // ColorChooser UI design is different for GTK L&F. | ||
| // There is no Swatches tab available for GTK L&F, skip the testing. | ||
| if (UIManager.getLookAndFeel().getName().contains("GTK")) { | ||
| System.out.println("Test skipped for " + UIManager.getLookAndFeel().getName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed print statement here as well.
alisenchung
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since these two tests are the same test would it be better to merge them into 1 test with the test instructions combined for both tests?
|
|
||
| private static JColorChooser createColorChooser() { | ||
| JColorChooser chooser = new JColorChooser(Color.BLUE); | ||
| return chooser; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| return chooser; | |
| return new JColorChooser(Color.BLUE);; |
| * @bug 4887836 | ||
| * @library /java/awt/regtesthelpers | ||
| * @library /java/awt/regtesthelpers /test/lib | ||
| * @build PassFailJFrame |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may explicitly mention jtreg.SkippedException in the @build tag.
| * @build PassFailJFrame | |
| * @build PassFailJFrame jtreg.SkippedException |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left it for now.
|
/integrate |
|
Going to push as commit 5c4f1ef.
Your commit was automatically rebased without conflicts. |
|
@kumarabhi006 Pushed as commit 5c4f1ef. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
There is no Swatches tab available for GTK Look and Feel due to the different ColorChooser UI design. Updated the test instructions.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/20867/head:pull/20867$ git checkout pull/20867Update a local copy of the PR:
$ git checkout pull/20867$ git pull https://git.openjdk.org/jdk.git pull/20867/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 20867View PR using the GUI difftool:
$ git pr show -t 20867Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/20867.diff
Webrev
Link to Webrev Comment