RFR: 8328673: Convert closed text/html/CSS manual applet test to main [v2]
Alexey Ivanov
aivanov at openjdk.org
Thu Mar 21 14:06:22 UTC 2024
On Thu, 21 Mar 2024 11:34:39 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> Couple closed manual applet text/html/CSS tests are converted to main based and opensourced
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>
> library path fix
Changes requested by aivanov (Reviewer).
test/jdk/javax/swing/text/html/CSS/bug4271058.java line 55:
> 53: public static void main(String[] args) throws Exception {
> 54: PassFailJFrame.builder()
> 55: .title("CSS tag Instructions")
A more specific title?
test/jdk/javax/swing/text/html/CSS/bug4271058.java line 60:
> 58: .columns(30)
> 59: .testUI(bug4271058::createTestUI)
> 60: .build()
I guess the test will benefit from a screenshot feature to capture how the table is rendered.
Suggestion:
.testUI(bug4271058::createTestUI)
.screenCapture()
.build()
The feature to take a screenshot automatically, when Fail button is pressed, hasn't been implemented yet. It's tracked under [JDK-8317114](https://bugs.openjdk.org/browse/JDK-8317114).
test/jdk/javax/swing/text/html/CSS/bug4286458.java line 57:
> 55:
> 56: String text =
> 57: "</html><body><table border=\"1\" cellpadding=\"-10\">" +
Suggestion:
"<html><body><table border="1" cellpadding="-10">" +
It should start with an opening tag.
test/jdk/javax/swing/text/html/CSS/bug4286458.java line 65:
> 63: jep.setEditorKit(new HTMLEditorKit());
> 64: jep.setEditable(false);
> 65: jep.setText(text);
Suggestion:
JEditorPane jep = new JEditorPane("text/html", text);
jep.setEditable(false);
Could be reduced to.
-------------
PR Review: https://git.openjdk.org/jdk/pull/18424#pullrequestreview-1952302358
PR Review Comment: https://git.openjdk.org/jdk/pull/18424#discussion_r1533964173
PR Review Comment: https://git.openjdk.org/jdk/pull/18424#discussion_r1533970805
PR Review Comment: https://git.openjdk.org/jdk/pull/18424#discussion_r1533976459
PR Review Comment: https://git.openjdk.org/jdk/pull/18424#discussion_r1533974967
More information about the client-libs-dev
mailing list