RFR" XXS testfix: 8218936 Test fails in Internet environment
Jonathan Gibbons
jonathan.gibbons at oracle.com
Wed Feb 13 23:02:50 UTC 2019
Please review a trivial test fix to replace the use of a tag which is
only valid in HTML 4 with one that is valid in HTML 5.
The use of '<tt>' is replaced with '<b>'.
The test only fails when run in an environment with access to the
Internet, and docs.oracle.com in particular. The test has started to
fail because HTML 4 is no longer supported, and the use of an invalid
tag causes the test to fail.
-- Jon
JBS: https://bugs.openjdk.java.net/browse/JDK-8218936
$ hg diff
diff -r bdccafc038a2
test/langtools/jdk/javadoc/doclet/testLinkOption/TestLinkOption.java
---
a/test/langtools/jdk/javadoc/doclet/testLinkOption/TestLinkOption.java
Wed Feb 13 15:50:08 2019 -0500
+++
b/test/langtools/jdk/javadoc/doclet/testLinkOption/TestLinkOption.java
Wed Feb 13 15:00:04 2019 -0800
@@ -88,14 +88,14 @@
checkOutput("pkg/B.html", true,
"<div class=\"block\">A method with html tag the method "
+ "<a href=\"" + url +
"java/lang/ClassLoader.html?is-external=true#getSystemClassLoader()\""
- + " title=\"class or interface in java.lang\"
class=\"externalLink\"><code><tt>getSystemClassLoader()</tt>"
+ + " title=\"class or interface in java.lang\"
class=\"externalLink\"><code><b>getSystemClassLoader()</b>"
+ "</code></a> as the parent class loader.</div>",
"<div class=\"block\">is equivalent to invoking <code>"
+ "<a
href=\"#createTempFile(java.lang.String,java.lang.String,java.io.File)\">"
+
"<code>createTempFile(prefix, suffix, null)</code></a></code>.</div>",
"<a href=\"" + url +
"java/lang/String.html?is-external=true\" "
+ "title=\"class or interface in java.lang\"
class=\"externalLink\">Link-Plain to String Class</a>",
- "<code><tt>getSystemClassLoader()</tt></code>",
+ "<code><b>getSystemClassLoader()</b></code>",
"<code>createTempFile(prefix, suffix, null)</code>",
"<dd><a
href=\"http://www.ietf.org/rfc/rfc2279.txt\"><i>RFC 2279: UTF-8, a\n" +
" transformation format of ISO 10646</i></a>, <br><a " +
diff -r bdccafc038a2
test/langtools/jdk/javadoc/doclet/testLinkOption/pkg/B.java
--- a/test/langtools/jdk/javadoc/doclet/testLinkOption/pkg/B.java Wed
Feb 13 15:50:08 2019 -0500
+++ b/test/langtools/jdk/javadoc/doclet/testLinkOption/pkg/B.java Wed
Feb 13 15:00:04 2019 -0800
@@ -31,7 +31,7 @@
public class B {
/**
* A method with html tag the method {@link
ClassLoader#getSystemClassLoader()
- * <tt>getSystemClassLoader()</tt>} as the parent class loader.
+ * <b>getSystemClassLoader()</b>} as the parent class loader.
*/
public void method1() {}
More information about the javadoc-dev
mailing list