mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-30 15:22:41 +00:00
8013426: TEST_BUG: java/awt/datatransfer/HTMLDataFlavors/HTMLDataFlavorTest.java fails with "RuntimeException: The data should be available" on Linux
Reviewed-by: anthony, serb
This commit is contained in:
parent
c2731f2b66
commit
f894b19d50
@ -43,6 +43,11 @@ public class HTMLDataFlavorTest {
|
||||
|
||||
public static void main(String[] args) throws IOException, UnsupportedFlavorException {
|
||||
|
||||
if (sun.awt.OSInfo.getOSType() != sun.awt.OSInfo.OSType.WINDOWS) {
|
||||
System.err.println("This test is for MS Windows only. Considered passed.");
|
||||
return;
|
||||
}
|
||||
|
||||
dataFlavors.put(DataFlavor.allHtmlFlavor, HtmlTransferable.ALL_HTML_AS_STRING);
|
||||
dataFlavors.put(DataFlavor.fragmentHtmlFlavor, HtmlTransferable.FRAGMENT_HTML_AS_STRING);
|
||||
dataFlavors.put(DataFlavor.selectionHtmlFlavor, HtmlTransferable.SELECTION_HTML_AS_STRING);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user