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.
This commit is contained in:
commit
0a580b313d
70422 changed files with 17213626 additions and 0 deletions
66
test/langtools/tools/doclint/AccessibilityTest.java
Normal file
66
test/langtools/tools/doclint/AccessibilityTest.java
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
* @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() { }
|
||||
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue