Make WordPress Core

Changeset 54666


Ignore:
Timestamp:
10/22/2022 12:24:01 PM (20 months ago)
Author:
SergeyBiryukov
Message:

Tests: Move padding-* test data in KSES tests into its own test case.

This creates separate test cases for safecss_filter_attr() with margin-* and padding-* logical properties for additional clarity.

Follow-up to [54102].

See #56793.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/kses.php

    r54203 r54666  
    12451245            // Margin and padding logical properties introduced in 6.1.
    12461246            array(
    1247                 'css'      => 'margin-block-start: 1px;margin-block-end: 2px;margin-inline-start: 3px;margin-inline-end: 4px;padding-block-start: 1px;padding-block-end: 2px;padding-inline-start: 3px;padding-inline-end: 4px',
    1248                 'expected' => 'margin-block-start: 1px;margin-block-end: 2px;margin-inline-start: 3px;margin-inline-end: 4px;padding-block-start: 1px;padding-block-end: 2px;padding-inline-start: 3px;padding-inline-end: 4px',
     1247                'css'      => 'margin-block-start: 1px;margin-block-end: 2px;margin-inline-start: 3px;margin-inline-end: 4px;',
     1248                'expected' => 'margin-block-start: 1px;margin-block-end: 2px;margin-inline-start: 3px;margin-inline-end: 4px',
     1249            ),
     1250            array(
     1251                'css'      => 'padding-block-start: 1px;padding-block-end: 2px;padding-inline-start: 3px;padding-inline-end: 4px;',
     1252                'expected' => 'padding-block-start: 1px;padding-block-end: 2px;padding-inline-start: 3px;padding-inline-end: 4px',
    12491253            ),
    12501254            // Assigning values to CSS variables introduced in 6.1.
Note: See TracChangeset for help on using the changeset viewer.