java-topology/test/langtools/tools/doclint/AccessibilityTest.java
russell@unturf.com 0a580b313d undefect. CWE-407 — 63 sites patched across 27 ecosystems
Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com

Patches, unit tests, benchmarks, whitepaper, and outreach briefs.
Public domain — no copyright claimed. Use freely.
2026-03-26 17:11:57 -04:00

66 lines
1.3 KiB
Java

/*
* @test /nodynamiccopyright/
* @bug 8004832 8247955 8247957
* @summary Add new doclint package
* @modules jdk.javadoc/jdk.javadoc.internal.doclint
* @build DocLintTester
* @run main DocLintTester -Xmsgs:all,-missing,-accessibility AccessibilityTest.java
* @run main DocLintTester -Xmsgs:all,-missing -ref AccessibilityTest.out AccessibilityTest.java
*/
/** */
public class AccessibilityTest {
/**
* <h1> ... </h1>
*/
public class Bad_H1 { }
/**
* <h3> ... </h3>
*/
public class Missing_H2 { }
/**
* <h2> ... </h2>
* <h4> ... </h4>
*/
public class Missing_H3 { }
/**
* <h2> ... </h2>
*/
public void bad_h2() { }
/**
* <h4> ... </h4>
*/
public void missing_h3() { }
/**
* <h3> ... </h3>
* <h5> ... </h5>
*/
public void missing_h4() { }
/**
* <img src="x.jpg">
*/
public void missing_alt() { }
/**
* <table><caption>ok</caption><tr><th>head<tr><td>data</table>
*/
public void table_with_caption() { }
/**
* <table><tr><th>head<tr><td>data</table>
*/
public void table_without_caption() { }
/**
* <table role="presentation"><tr><th>head<tr><td>data</table>
*/
public void table_presentation() { }
}