8367348: Enhance PassFailJFrame to support links in HTML#3147
8367348: Enhance PassFailJFrame to support links in HTML#3147TheMangovnik wants to merge 1 commit into
Conversation
|
👋 Welcome back TheMangovnik! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
This backport pull request has now been updated with issue from the original commit. |
There was a problem hiding this comment.
It looks like we should backport the resolved subtasks of JDK-8318688 first before this change, particularly 8340785: Update description of PassFailJFrame and samples and 8350260: Improve HTML instruction formatting in PassFailJFrame. The former adds in the documentation you couldn't find and the latter resolves the difference in the styles.addRule line. With those, it would leave the only difference as the instanceof change (which looks correct)
|
So:
However, this is for after CPU neither way, since all of them have P4, right? |
Only the two are prerequisites for this change, as that should mean the hunk doesn't need to be dropped and this should be close to clean. The others I'll leave to you to pursue if you wish.
Yeah. 11u-dev is now taking changes for July. |
|
@TheMangovnik This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
|
/touch |
|
@TheMangovnik The pull request is being re-evaluated and the inactivity timeout has been reset. |
|
@TheMangovnik This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
|
/touch |
|
/template append |
|
@TheMangovnik The pull request is being re-evaluated and the inactivity timeout has been reset. |
|
@TheMangovnik The pull request template has been appended to the pull request body |
|
@TheMangovnik This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
Backport of JDK-8367348 - Enhance PassFailJFrame to support links in HTML. Tests become more interactive if users can click links in the instructions and handle them with their own HyperlinkListener.
This backport is in follow up to the backport of JDK-8213781 (this PR).
There are two differences compared to the corresponding backport to jdk17
instanceof, which is a feature that is not supported by jdk11, hence I edited this to be jdk11 compatible.Tests
Testing was done on Fedora 43.
Tier 1 - PASSES
GTest - PASSES
GHA - PASSES
macos-x64 hs/tier1 serviceabilityis failing, but this seems to be common over other unrelated PRs too -> not relevant to this backport.Bonus tests - PASSES
I identified following interactive tests that are affected by this backport that seems to be behaving the same way before and after this backport:
test/jdk/java/awt/font/TextLayout/ArabicBox.javatest/jdk/java/awt/font/TextLayout/TestJustification.javatest/jdk/java/awt/Frame/ALTTABIconBeingErased/ALTTABIconBeingErased.javatest/jdk/java/awt/Frame/DefaultSizeTest.javatest/jdk/java/awt/Frame/GetBoundsResizeTest.javatest/jdk/java/awt/geom/HitTest/PathHitTest.javatest/jdk/java/awt/Icon/IconChangingTest/IconChangingTest.javatest/jdk/java/awt/Icon/IconShowingTest/IconShowingTest.javatest/jdk/java/awt/Icon/IconTransparencyTest/IconTransparencyTest.javatest/jdk/java/awt/Icon/SetLargeIconTest/SetLargeIconTest.javatest/jdk/java/awt/LightweightComponent/LightweightCliprect.javatest/jdk/java/awt/MenuBar/AddRemoveMenuBarTests/AddRemoveMenuBarTest_1.javatest/jdk/java/awt/MenuBar/AddRemoveMenuBarTests/AddRemoveMenuBarTest_2.javatest/jdk/java/awt/MenuBar/AddRemoveMenuBarTests/AddRemoveMenuBarTest_3.javatest/jdk/java/awt/MenuBar/AddRemoveMenuBarTests/AddRemoveMenuBarTest_4.javatest/jdk/java/awt/PopupMenu/TruncatedPopupMenuTest.javatest/jdk/java/awt/print/PrinterJob/ImagePrinting/ClippedImages.javatest/jdk/java/awt/print/PrinterJob/ImagePrinting/PrintARGBImage.javatest/jdk/java/awt/print/PrinterJob/PageRangesDlgTest.javatest/jdk/java/awt/print/PrinterJob/PrintGlyphVectorTest.javatest/jdk/java/awt/print/PrinterJob/PrintLatinCJKTest.javatest/jdk/java/awt/TrayIcon/TrayIconScalingTest.javatest/jdk/javax/accessibility/TestJMenuItemShortcutAccessibility.javatest/jdk/javax/swing/JComboBox/JComboBoxActionEvent.javatest/jdk/javax/swing/JComboBox/JComboBoxBorderTest.javatest/jdk/javax/swing/JFrame/bug4419914.javatest/jdk/javax/swing/JFrame/DefaultCloseOperation.javatest/jdk/javax/swing/JMenuItem/TestRadioAndCheckMenuItemWithIcon.javatest/jdk/javax/swing/JRadioButton/bug4380543.javatest/jdk/javax/swing/JTabbedPane/4209065/bug4209065.javatest/jdk/javax/swing/JToolBar/bug4203039.javatest/jdk/javax/swing/MultiMonitor/MultimonVImage.javatest/jdk/javax/swing/ProgressMonitor/ProgressTest.javatest/jdk/javax/swing/text/bug4148489.javatest/jdk/javax/swing/text/html/StyleSheet/bug4803145.javatest/jdk/javax/swing/text/PaintTest.javatest/jdk/sun/awt/PaletteTester.javaBonus info
This PR may not be the best place to mention this, but since I have no idea where other place to bring this up:
While trying to run the interactive tests mentioned above I find out that few of them are unable to compile, since they make use of
"""for string block, which is a feature that is not supported by jdk11. The tests that this applies to:GetBoundsResizeTest.javaAddRemoveMenuBarTest_1.javaAddRemoveMenuBarTest_2.javaAddRemoveMenuBarTest_3.javaAddRemoveMenuBarTest_4.javaOut of curiosity I searched the jdk11 repo and found one more test that also uses
""":test/jdk/sun/awt/PaletteTester.javaLooking into other tests from above that also failed:
JComboBoxBorderTest.java-> seems to be macos specific test that is being executed on Linux too, because it misses corresponding annotation to be run only on mac.TestJustification.javaalso seems to be failing on Linux, but intest/jdk/ProblemList.txtit is mention only as mac specific.Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/3147/head:pull/3147$ git checkout pull/3147Update a local copy of the PR:
$ git checkout pull/3147$ git pull https://git.openjdk.org/jdk11u-dev.git pull/3147/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3147View PR using the GUI difftool:
$ git pr show -t 3147Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/3147.diff
Using Webrev
Link to Webrev Comment