From d78b1178098e1b4060ae49d8791f4e721b35eb4e Mon Sep 17 00:00:00 2001 From: Petr Pchelko Date: Tue, 3 Dec 2013 15:31:07 +0400 Subject: [PATCH] 8029251: [TEST_BUG][macosx] Use safari browser, the ouput contain information that DataFlavor.allHtmlFlavor is not present in the system clipboard Reviewed-by: anthony, serb --- .../HTMLDataFlavors/ManualHTMLDataFlavorTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jdk/test/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java b/jdk/test/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java index 156bbe4cb51..015d46f03b2 100644 --- a/jdk/test/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java +++ b/jdk/test/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java @@ -96,9 +96,7 @@ public class ManualHTMLDataFlavorTest extends Applet { Sysout.println(t.getTransferData(DataFlavor.fragmentHtmlFlavor).toString()); Sysout.println("SELECTION:"); Sysout.println(t.getTransferData(DataFlavor.selectionHtmlFlavor).toString()); - } catch (UnsupportedFlavorException e) { - e.printStackTrace(); - } catch (IOException e) { + } catch (UnsupportedFlavorException | IOException e) { e.printStackTrace(); } @@ -116,6 +114,7 @@ public class ManualHTMLDataFlavorTest extends Applet { " otherwise for instance iexplore can prohibit drag and drop from", " the browser to other applications because of", " the protected mode restrictions.", + " On Mac OS X do NOT use Safari, it does not provide the needed DataFlavor", "3) Check the data in the output area of this dialog", "5) The output should not contain information that any of", " flavors is not present in the system clipboard",