Make WordPress Core

Ticket #43456: 43456.tests.diff

File 43456.tests.diff, 697 bytes (added by soulseekah, 7 years ago)
  • tests/phpunit/tests/formatting/WpHtmlSplit.php

    diff --git tests/phpunit/tests/formatting/WpHtmlSplit.php tests/phpunit/tests/formatting/WpHtmlSplit.php
    index 356dcb8..f981d91 100644
    class Tests_Formatting_WpHtmlSplit extends WP_UnitTestCase { 
    3232                                'abcd <![CDATA[ <html> ]]> efgh',
    3333                                array( 'abcd ', '<![CDATA[ <html> ]]>', ' efgh' ),
    3434                        ),
     35                        array(
     36                                '<style>p[class=*"red"] { color: red; }</style> efg',
     37                                array( '', '<style>', 'p[class=*"red"] { color: red; }', '</style>', ' efg' ),
     38                        ),
     39                        array(
     40                                '<script>1 < 4</script>',
     41                                array( '', '<script>', '1 < 4', '</script>', '' ),
     42                        ),
    3543                );
    3644        }
    3745