2013-01-15 21:03:11 +00:00
|
|
|
/*
|
|
|
|
* @test /nodynamiccopyright/
|
2021-01-06 22:48:00 +00:00
|
|
|
* @bug 8004832 8247957
|
2013-01-15 21:03:11 +00:00
|
|
|
* @summary Add new doclint package
|
2020-09-23 19:55:08 +00:00
|
|
|
* @modules jdk.javadoc/jdk.javadoc.internal.doclint
|
2013-01-15 21:03:11 +00:00
|
|
|
* @build DocLintTester
|
2021-08-11 18:03:40 +00:00
|
|
|
* @run main DocLintTester -Xmsgs:all,-missing -ref AnchorTest.out AnchorTest.java
|
2013-01-15 21:03:11 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/** */
|
|
|
|
public class AnchorTest {
|
|
|
|
// tests for <a id=value>
|
|
|
|
|
|
|
|
/**
|
2021-01-06 22:48:00 +00:00
|
|
|
* <a id=foo></a>
|
2013-01-15 21:03:11 +00:00
|
|
|
*/
|
|
|
|
public void a_id_foo() { }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <a id=foo></a>
|
|
|
|
*/
|
|
|
|
public void a_id_already_defined() { }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <a id=></a>
|
|
|
|
*/
|
|
|
|
public void a_id_empty() { }
|
|
|
|
|
|
|
|
/**
|
2021-01-06 22:48:00 +00:00
|
|
|
* <a id="123 "></a>
|
2013-01-15 21:03:11 +00:00
|
|
|
*/
|
|
|
|
public void a_id_invalid() { }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <a id ></a>
|
|
|
|
*/
|
|
|
|
public void a_id_missing() { }
|
|
|
|
|
|
|
|
// tests for id=value on non-<a> tags
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <p id=p_id_foo>text</p>
|
|
|
|
*/
|
|
|
|
public void p_id_foo() { }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <p id=foo>text</p>
|
|
|
|
*/
|
|
|
|
public void p_id_already_defined() { }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <p id=>text</p>
|
|
|
|
*/
|
|
|
|
public void p_id_empty() { }
|
|
|
|
|
|
|
|
/**
|
2021-01-06 22:48:00 +00:00
|
|
|
* <p id="123 ">text</p>
|
2013-01-15 21:03:11 +00:00
|
|
|
*/
|
|
|
|
public void p_id_invalid() { }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <p id >text</p>
|
|
|
|
*/
|
|
|
|
public void p_id_missing() { }
|
|
|
|
|
|
|
|
|
|
|
|
}
|