changeset 7082:281add053efe

8013426: TEST_BUG: java/awt/datatransfer/HTMLDataFlavors/HTMLDataFlavorTest.java fails with "RuntimeException: The data should be available" on Linux Reviewed-by: anthony, serb
author kshefov
date Fri, 17 May 2013 14:11:06 +0400
parents e944b78812a8
children 49871f1581b8 85df65495177
files test/java/awt/datatransfer/HTMLDataFlavors/HTMLDataFlavorTest.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/awt/datatransfer/HTMLDataFlavors/HTMLDataFlavorTest.java	Fri May 17 14:08:59 2013 +0400
+++ b/test/java/awt/datatransfer/HTMLDataFlavors/HTMLDataFlavorTest.java	Fri May 17 14:11:06 2013 +0400
@@ -43,6 +43,11 @@
 
     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);