diff --git a/tests/phpunit/tests/kses.php b/tests/phpunit/tests/kses.php
index 657fb30..55cf10d 100644
|
a
|
b
|
class Tests_Kses extends WP_UnitTestCase { |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
| | 59 | * @ticket 30421 |
| | 60 | */ |
| | 61 | function test_wp_kses_aria() { |
| | 62 | |
| | 63 | $aria_attributes = array( |
| | 64 | 'aria-atomic', |
| | 65 | 'aria-busy', |
| | 66 | 'aria-controls', |
| | 67 | 'aria-describedby', |
| | 68 | 'aria-disabled', |
| | 69 | 'aria-dropeffect', |
| | 70 | 'aria-flowto', |
| | 71 | 'aria-grabbed', |
| | 72 | 'aria-haspopup', |
| | 73 | 'aria-hidden', |
| | 74 | 'aria-invalid', |
| | 75 | 'aria-label', |
| | 76 | 'aria-labelledby', |
| | 77 | 'aria-live', |
| | 78 | 'aria-owns', |
| | 79 | 'aria-relevant', |
| | 80 | 'aria-autocomplete', |
| | 81 | 'aria-checked', |
| | 82 | 'aria-expanded', |
| | 83 | 'aria-level', |
| | 84 | 'aria-multiline', |
| | 85 | 'aria-multiselectable', |
| | 86 | 'aria-orientation', |
| | 87 | 'aria-pressed', |
| | 88 | 'aria-readonly', |
| | 89 | 'aria-required', |
| | 90 | 'aria-selected', |
| | 91 | 'aria-sort', |
| | 92 | 'aria-valuemax', |
| | 93 | 'aria-valuemin', |
| | 94 | 'aria-valuenow', |
| | 95 | 'aria-valuetext', |
| | 96 | 'aria-activedescendant', |
| | 97 | 'aria-posinset', |
| | 98 | 'aria-setsize', |
| | 99 | ); |
| | 100 | |
| | 101 | $attrs = array(); |
| | 102 | foreach ( $aria_attributes as $attr ) { |
| | 103 | $attrs[] = sprintf( '%s="%s"', $attr, 'value' ); |
| | 104 | } |
| | 105 | |
| | 106 | $el = sprintf( '<div %s></div>', implode( ' ', $attrs ) ); |
| | 107 | |
| | 108 | global $allowed_protocols, $allowed_tags; |
| | 109 | $this->assertEquals( $el, wp_kses_post( $el ) ); |
| | 110 | |
| | 111 | } |
| | 112 | |
| | 113 | /** |
| 59 | 114 | * @ticket 20210 |
| 60 | 115 | */ |
| 61 | 116 | function test_wp_filter_post_kses_abbr() { |
| … |
… |
EOF; |
| 374 | 429 | $this->assertEquals( '¾', wp_kses_normalize_entities( '¾' ) ); |
| 375 | 430 | $this->assertEquals( '∴', wp_kses_normalize_entities( '∴' ) ); |
| 376 | 431 | } |
| 377 | | |
| | 432 | |
| 378 | 433 | /** |
| 379 | 434 | * Test removal of invalid binary data for HTML. |
| 380 | 435 | * |