changeset 3436:18e2c22d5c2e

8048293: update tools/javadoc/6227454 to have missing <head> tag Reviewed-by: jjg, bpatel
author sogoel
date Thu, 26 Jun 2014 16:39:14 -0700
parents 0ae21b11d85b
children 855f8c7337eb
files test/tools/javadoc/6227454/Test.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javadoc/6227454/Test.java	Thu Jun 26 16:07:07 2014 -0700
+++ b/test/tools/javadoc/6227454/Test.java	Thu Jun 26 16:39:14 2014 -0700
@@ -40,14 +40,15 @@
     void run() throws Exception {
         String docType = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" "
                          + "\"http://www.w3.org/TR/html4/loose.dtd\">";
+        String headTag = "<head><title>Title </title></head>";
         test(docType+"<html><body>ABC      XYZ</body></html>");
         test(docType+"<html><body>ABC      XYZ</BODY></html>");
         test(docType+"<html><BODY>ABC      XYZ</body></html>");
         test(docType+"<html><BODY>ABC      XYZ</BODY></html>");
         test(docType+"<html><BoDy>ABC      XYZ</bOdY></html>");
-        test(docType+"<html>      ABC      XYZ</bOdY></html>", "Body tag missing from HTML");
+        test(docType+"<html>"+headTag+"      ABC      XYZ</bOdY></html>", "Body tag missing from HTML");
         test(docType+"<html><body>ABC      XYZ       </html>", "Close body tag missing from HTML");
-        test(docType+"<html>      ABC      XYZ       </html>", "Body tag missing from HTML");
+        test(docType+"<html>"+headTag+"      ABC      XYZ       </html>", "Body tag missing from HTML");
         test(docType+"<html><body>ABC" + bigText(8192, 40) + "XYZ</body></html>");
 
         if (errors > 0)