RFR: 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program
Harshitha Onkar
honkar at openjdk.org
Sat Mar 16 22:19:06 UTC 2024
On Fri, 15 Mar 2024 22:32:12 GMT, Phil Race <prr at openjdk.org> wrote:
> Convert this applet based test to a main program
test/jdk/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java line 27:
> 25: @test
> 26: @bug 7075105
> 27: @summary WIN: Provide a way to format HTML on drop
Do we add `@requires (os.family == "windows")` since the test summary indicates Windows issue?
test/jdk/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java line 143:
> 141: frame.add(new DropPane());
> 142: frame.pack();
> 143: return frame;
Changes looks good expect that when the the test is started and I switch to the browser window the drop target frame goes behind and becomes difficult to drag and drop to the Red panel.
Setting `frame.setAlwaysOnTop(true)` will ensure that the DnD panel is on top.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18334#discussion_r1527001893
PR Review Comment: https://git.openjdk.org/jdk/pull/18334#discussion_r1526997015
More information about the client-libs-dev
mailing list