lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r690914 - /lucene/java/trunk/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java
Date Mon, 01 Sep 2008 09:07:18 GMT
Author: mikemccand
Date: Mon Sep  1 02:07:16 2008
New Revision: 690914

URL: http://svn.apache.org/viewvc?rev=690914&view=rev
Log:
remove DOCTYPE declaration in testEncoding (it's causing intermittant false failures in nightly
build when xerces has trouble loading the DTD from w3.org)

Modified:
    lucene/java/trunk/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java

Modified: lucene/java/trunk/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java?rev=690914&r1=690913&r2=690914&view=diff
==============================================================================
--- lucene/java/trunk/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java
(original)
+++ lucene/java/trunk/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java
Mon Sep  1 02:07:16 2008
@@ -998,9 +998,7 @@
 
     String encodedSnippet = highlighter.getBestFragments(tokenStream, rawDocContent, 1, "");
     // An ugly bit of XML creation:
-    String xhtml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<!DOCTYPE html\n"
-        + "PUBLIC \"//W3C//DTD XHTML 1.0 Transitional//EN\"\n"
-        + "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
+    String xhtml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
         + "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n"
         + "<head>\n" + "<title>My Test HTML Document</title>\n" + "</head>\n"
+ "<body>\n" + "<h2>"
         + encodedSnippet + "</h2>\n" + "</body>\n" + "</html>";



Mime
View raw message