WordPress.org

Make WordPress Core

Changeset 29967


Ignore:
Timestamp:
10/19/2014 09:23:32 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Update expected results in wp_add_inline_style() unit tests after [29958].

props georgestephanis.
see #30032.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/dependencies/styles.php

    r25786 r29967  
    9999       
    100100        $expected  = "<link rel='stylesheet' id='handle-css'  href='http://example.com?ver=1' type='text/css' media='all' />\n";
    101         $expected .= "<style type='text/css'>\n";
     101        $expected .= "<style id='handle-inline-css' type='text/css'>\n";
    102102        $expected .= "$style\n";
    103103        $expected .= "</style>\n";
     
    127127
    128128        $expected  = "<link rel='stylesheet' id='handle-css'  href='http://example.com?ver=1' type='text/css' media='all' />\n";
    129         $expected .= "<style type='text/css'>\n";
     129        $expected .= "<style id='handle-inline-css' type='text/css'>\n";
    130130        $expected .= "$style\n";
    131131        $expected .= "</style>\n";
     
    154154
    155155        $expected  = "<link rel='stylesheet' id='handle-css'  href='http://example.com?ver=1' type='text/css' media='all' />\n";
    156         $expected .= "<style type='text/css'>\n";
     156        $expected .= "<style id='handle-inline-css' type='text/css'>\n";
    157157        $expected .= "$style1\n";
    158158        $expected .= "$style2\n";
     
    176176    public function test_plugin_doing_inline_styles_wrong() {
    177177
    178         $style  = "<style type='text/css'>\n";
     178        $style  = "<style id='handle-inline-css' type='text/css'>\n";
    179179        $style .= ".thing {\n";
    180180        $style .= "\tbackground: red;\n";
Note: See TracChangeset for help on using the changeset viewer.