-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
8328673: Convert closed text/html/CSS manual applet test to main #18424
Conversation
👋 Welcome back psadhukhan! A progress list of the required criteria for merging this PR into |
@prsadhuk 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 28 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 |
Webrevs
|
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.
Please update the library path.
* @test | ||
* @bug 4270889 4271058 4285098 | ||
* @summary Tests that <table border>, <table align> and <td width> tags work | ||
* @library /open/test/jdk/java/awt/regtesthelpers |
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.
Need to remove "/open/test/jdk" here and in other test also.
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.
Good catch...forgot to modify while copying...
|
||
public static void main(String[] args) throws Exception { | ||
PassFailJFrame.builder() | ||
.title("CSS tag Instructions") |
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.
A more specific title?
.testUI(bug4271058::createTestUI) | ||
.build() |
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 the test will benefit from a screenshot feature to capture how the table is rendered.
.testUI(bug4271058::createTestUI) | |
.build() | |
.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.
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.
ok
JEditorPane jep = new JEditorPane(); | ||
jep.setEditorKit(new HTMLEditorKit()); | ||
jep.setEditable(false); | ||
jep.setText(text); |
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.
JEditorPane jep = new JEditorPane(); | |
jep.setEditorKit(new HTMLEditorKit()); | |
jep.setEditable(false); | |
jep.setText(text); | |
JEditorPane jep = new JEditorPane("text/html", text); | |
jep.setEditable(false); |
Could be reduced to.
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.
ok
private static JFrame createTestUI() { | ||
|
||
String text = | ||
"</html><body><table border=\"1\" cellpadding=\"-10\">" + |
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.
"</html><body><table border=\"1\" cellpadding=\"-10\">" + | |
"<html><body><table border=\"1\" cellpadding=\"-10\">" + |
It should start with an opening tag.
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.
yes
/integrate |
Going to push as commit cd534f8.
Your commit was automatically rebased without conflicts. |
Couple closed manual applet text/html/CSS tests are converted to main based and opensourced
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/18424/head:pull/18424
$ git checkout pull/18424
Update a local copy of the PR:
$ git checkout pull/18424
$ git pull https://git.openjdk.org/jdk.git pull/18424/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 18424
View PR using the GUI difftool:
$ git pr show -t 18424
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/18424.diff
Webrev
Link to Webrev Comment