langtools/test/com/sun/javadoc/testHtmlVersion/TestHtmlVersion.java
changeset 36270 8ed6e67460be
parent 33920 bd731341c405
child 36526 3b41f1c69604
equal deleted inserted replaced
36269:5b3afff0e70c 36270:8ed6e67460be
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 8072945 8081854 8141492
    26  * @bug 8072945 8081854 8141492 8148985
    27  * @summary Test the version of HTML generated by the javadoc tool.
    27  * @summary Test the version of HTML generated by the javadoc tool.
    28  * @author bpatel
    28  * @author bpatel
    29  * @library ../lib
    29  * @library ../lib
    30  * @modules jdk.javadoc
    30  * @modules jdk.javadoc
    31  * @build JavadocTester
    31  * @build JavadocTester
   686 
   686 
   687         // Test for main index page
   687         // Test for main index page
   688         checkOutput("index.html", true,
   688         checkOutput("index.html", true,
   689                 "<!DOCTYPE HTML>",
   689                 "<!DOCTYPE HTML>",
   690                 "<link rel=\"stylesheet\" type=\"text/css\" href=\"stylesheet.css\" title=\"Style\">",
   690                 "<link rel=\"stylesheet\" type=\"text/css\" href=\"stylesheet.css\" title=\"Style\">",
   691                 "<body>\n"
   691                 "<body onload=\"loadFrames()\">\n"
   692                 + "<main role=\"main\">\n"
   692                 + "<main role=\"main\">\n"
   693                 + "<div class=\"mainContainer\">\n"
   693                 + "<div class=\"mainContainer\">\n"
   694                 + "<div class=\"leftContainer\">\n"
   694                 + "<div class=\"leftContainer\">\n"
   695                 + "<div class=\"leftTop\">\n"
   695                 + "<div class=\"leftTop\">\n"
   696                 + "<iframe src=\"overview-frame.html\" name=\"packageListFrame\" title=\"All Packages\"></iframe>\n"
   696                 + "<iframe src=\"overview-frame.html\" name=\"packageListFrame\" title=\"All Packages\"></iframe>\n"
  1597 
  1597 
  1598         // Test for main index page
  1598         // Test for main index page
  1599         checkOutput("index.html", true,
  1599         checkOutput("index.html", true,
  1600                 "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">",
  1600                 "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">",
  1601                 "<link rel=\"stylesheet\" type=\"text/css\" href=\"stylesheet.css\" title=\"Style\">",
  1601                 "<link rel=\"stylesheet\" type=\"text/css\" href=\"stylesheet.css\" title=\"Style\">",
  1602                 "<body>\n"
  1602                 "<body onload=\"loadFrames()\">\n"
  1603                 + "<div class=\"mainContainer\">\n"
  1603                 + "<div class=\"mainContainer\">\n"
  1604                 + "<div class=\"leftContainer\">\n"
  1604                 + "<div class=\"leftContainer\">\n"
  1605                 + "<div class=\"leftTop\">\n"
  1605                 + "<div class=\"leftTop\">\n"
  1606                 + "<iframe src=\"overview-frame.html\" name=\"packageListFrame\" title=\"All Packages\"></iframe>\n"
  1606                 + "<iframe src=\"overview-frame.html\" name=\"packageListFrame\" title=\"All Packages\"></iframe>\n"
  1607                 + "</div>");
  1607                 + "</div>");