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
8239502: [TEST_BUG] Test javax/swing/text/FlowView/6318524/bug6318524.java never fails #5660
Conversation
|
@aivanov-jdk 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. |
@aivanov-jdk This change now passes all automated pre-integration checks. 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 no new commits pushed to the
|
Probably it will be better to use descriptive name for the test rather than bugid. Probably it was done to maintain consistency with closed test but since it is supposedly a rewrite and we have done away with bugid in testname, a descriptive name will be better. Also @bug tag will let us know for which it was written.. |
In the majority of cases, the test name is not detailed enough, however, it usually gives a better idea than a plain bugid. If a test fails, you still have to analyse it.
Even if it's completely re-written, it's not a new test. I'd rather keep the original name: searching for it returns some bugs; if the test name is changed, those search results are lost. |
/integrate |
Going to push as commit b7425b6.
Your commit was automatically rebased without conflicts. |
@aivanov-jdk Pushed as commit b7425b6. |
The test is being moved from the closed to open. It's nearly a complete re-write of the original test.
I made the test headless by painting into image.
To detect failure, the test uses the position of the caret at the end of first line of the paragraph where the wrapping occurs.
I made sure that the updated test reproduces the original problem in JDK-6318524. (There are some tweaks required to compile it with JDK 6.) The updated test fails when run with 6-b52. In fact, it also fails with 6-b53 up to 6-b76 where JDK-6364882 is fixed.
The behaviour in 6-b76 coincides with that in the latest JDK.
There are three parameters provided for debugging purposes:
•
-show
: Show frame for visual inspection•
-save
: Save the start image after the first paragraph is justified, and the last image before it's checked that the first paragraph remains justified•
-saveAll
: Save images for all the intermediate steps[1] JDK-6318524: Regression: views in paragraph are not children of Paragraph.Row is some cases
[2] JDK-6364882: Last line of a paragraph should not be justified
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5660/head:pull/5660
$ git checkout pull/5660
Update a local copy of the PR:
$ git checkout pull/5660
$ git pull https://git.openjdk.java.net/jdk pull/5660/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 5660
View PR using the GUI difftool:
$ git pr show -t 5660
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5660.diff