8327856: Convert applet test SpanishDiacriticsTest.java to a main program#18208
8327856: Convert applet test SpanishDiacriticsTest.java to a main program#18208prrace wants to merge 4 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back prr! A progress list of the required criteria for merging this PR into |
Webrevs
|
|
@prrace 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 23 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 |
| that they take several seconds to display. That is an | ||
| expected behaviour for this test. | ||
|
|
||
| If the text field displays ''o, (i.e. o should be without an acute) |
There was a problem hiding this comment.
| If the text field displays ''o, (i.e. o should be without an acute) | |
| If the text field displays \u00f3, (i.e. o should be without an acute) |
Use the real character?
There was a problem hiding this comment.
It isn't a single char. It is as written - the sequence of 3 characters - "single quote" "single quote", "latin lower case o"
There was a problem hiding this comment.
I misread it. If the text is ''o instead of ó…
There was a problem hiding this comment.
What if we spell the conditions explicitly:
The text field should display ''o (i.e. two apostrophes and o without an acute), press Pass.
If you see ó (i.e. o with an acute), press Fail.
There was a problem hiding this comment.
I will reword it but the text is the same as was in the HTML file with just some minor grammatical changes in the surrounding text.
There was a problem hiding this comment.
Making the instructions clearer helps to avoid confusion. Thank you for updating them, looks clearer now.
| frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); | ||
| frame.pack(); | ||
| frame.setVisible(true); |
There was a problem hiding this comment.
| frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); | |
| frame.pack(); | |
| frame.setVisible(true); | |
| frame.pack(); |
Calling setVisible(true) here causes flickering as the frame gets shown at its default location and later gets moved to its final location.
Setting close operation is redundant, PassFailJFrame handles closing test UI (when you use the builder pattern) and fails the test if it's closed.
There was a problem hiding this comment.
Calling setVisible(true) does not affect functionality, purely aesthetic effect to avoid window flickering.
| .instructions(INSTRUCTIONS) | ||
| .rows(18) | ||
| .columns(50) | ||
| .testUI(() -> createTestUI()) |
There was a problem hiding this comment.
| .testUI(() -> createTestUI()) | |
| .testUI(SpanishDiacriticsTest::createTestUI) |
I prefer method references in such cases, it looks cleaner.
| .rows(18) | ||
| .columns(50) | ||
| .testUI(() -> createTestUI()) | ||
| .testTimeOut(5) |
There was a problem hiding this comment.
Default timeout could be omitted.
aivanov-jdk
left a comment
There was a problem hiding this comment.
Looks good to me except for setVisible(true) in createUI.
|
/integrate |
|
Going to push as commit 22f10e0.
Your commit was automatically rebased without conflicts. |
Converts the manual applet test in the files ..
SpanishDiacriticsTest/SpanishDiacriticsTest.html
SpanishDiacriticsTest/SpanishDiacriticsTest.java
.. to a main program using PassFailJFrame
Added requires windows since it seems very windows-specific.
I got rid of the redundant extra directory which makes the .java file "new" according to github but it is largely changed anyway
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/18208/head:pull/18208$ git checkout pull/18208Update a local copy of the PR:
$ git checkout pull/18208$ git pull https://git.openjdk.org/jdk.git pull/18208/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 18208View PR using the GUI difftool:
$ git pr show -t 18208Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/18208.diff
Webrev
Link to Webrev Comment