|
Java example source code file (AnchorTest.java)
The AnchorTest.java Java example source code
/*
* @test /nodynamiccopyright/
* @bug 8004832
* @summary Add new doclint package
* @build DocLintTester
* @run main DocLintTester -ref AnchorTest.out AnchorTest.java
*/
/** */
public class AnchorTest {
// tests for <a name=value>
/**
* <a name=foo>
*/
public void a_name_foo() { }
/**
* <a name=foo>
*/
public void a_name_already_defined() { }
/**
* <a name=>
*/
public void a_name_empty() { }
/**
* <a name=123 >
*/
public void a_name_invalid() { }
/**
* <a name >
*/
public void a_name_missing() { }
// tests for <a id=value>
/**
* <a id=a_id_foo>
*/
public void a_id_foo() { }
/**
* <a id=foo>
*/
public void a_id_already_defined() { }
/**
* <a id=>
*/
public void a_id_empty() { }
/**
* <a id=123 >
*/
public void a_id_invalid() { }
/**
* <a id >
*/
public void a_id_missing() { }
// tests for id=value on non-<a> tags
/**
* <p id=p_id_foo>text
*/
public void p_id_foo() { }
/**
* <p id=foo>text
*/
public void p_id_already_defined() { }
/**
* <p id=>text
*/
public void p_id_empty() { }
/**
* <p id=123 >text
*/
public void p_id_invalid() { }
/**
* <p id >text
*/
public void p_id_missing() { }
}
Other Java examples (source code examples)Here is a short list of links related to this Java AnchorTest.java source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.