summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-08-16 11:45:21 (EDT)
committer pelder2006-08-16 11:45:21 (EDT)
commit17e102636f1441f70db9b654721ff8fad4aaf48a (patch)
tree05e4756cad9153a5cab40b0e8b1396617e97aa98
parent25f2d56bb46008abde9c774f7e429c5e4edda869 (diff)
downloadorg.eclipse.jet-17e102636f1441f70db9b654721ff8fad4aaf48a.zip
org.eclipse.jet-17e102636f1441f70db9b654721ff8fad4aaf48a.tar.gz
org.eclipse.jet-17e102636f1441f70db9b654721ff8fad4aaf48a.tar.bz2
[153930] Remove verification of BOM presence in Unicode 16 tests pending determination of a platform independent method of doing this. Removed verification did not work on Linux.
-rw-r--r--tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/taglib/workspace/ActionsUtilTests.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/taglib/workspace/ActionsUtilTests.java b/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/taglib/workspace/ActionsUtilTests.java
index 88a1779..9203668 100644
--- a/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/taglib/workspace/ActionsUtilTests.java
+++ b/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/taglib/workspace/ActionsUtilTests.java
@@ -93,10 +93,11 @@ public class ActionsUtilTests extends TestCase {
URL url = new URL("platform:/plugin/org.eclipse.jet.tests/data/ActionsUtil/sample_utf16le.xml");
final String correctText = ActionsUtil.readTextFile(url, "UTF-16");
- final String rawText = ActionsUtil.readTextFile(url, null);
assertTrue("correct text", correctText.startsWith("<?xml version=\"1.0\" encoding=\"UTF-16\"?>"));
- assertTrue("raw text", rawText.startsWith("\u00FF\u00FE")); // Little Endian BOM is FF FE
+ // XXX: Should verify presence of BOM by reading byte stream directly.
+// final String rawText = ActionsUtil.readTextFile(url, null);
+// assertTrue("raw text", rawText.startsWith("\u00FF\u00FE")); // Little Endian BOM is FF FE
}
/**
@@ -107,9 +108,9 @@ public class ActionsUtilTests extends TestCase {
URL url = new URL("platform:/plugin/org.eclipse.jet.tests/data/ActionsUtil/sample_utf16be.xml");
final String correctText = ActionsUtil.readTextFile(url, "UTF-16");
- final String rawText = ActionsUtil.readTextFile(url, null);
-
assertTrue("correct text", correctText.startsWith("<?xml version=\"1.0\" encoding=\"UTF-16\"?>"));
- assertTrue("raw text", rawText.startsWith("\u00FE\u00FF")); // big endian BOM is FE FF
+ // XXX: Should verify presence of BOM by reading byte stream directly.
+// final String rawText = ActionsUtil.readTextFile(url, null);
+// assertTrue("raw text", rawText.startsWith("\u00FE\u00FF")); // big endian BOM is FE FF
}
}