[wp-trac] [WordPress Trac] #28638: Update wpautop() Unit Tests to handle changes for figcaption, option, and select

WordPress Trac noreply at wordpress.org
Wed Jun 25 22:03:38 UTC 2014


#28638: Update wpautop() Unit Tests to handle changes for figcaption, option, and
select
--------------------------+-----------------------------
 Reporter:  rachelbaker   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Formatting    |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In #25646 figcaption and in #22230 option and select tags were removed
 from the wpautop block level elements.  The related unit test from #25856
 need a minor adjustment to account for the changes and pass as expected.

 {{{
 1)
 Tests_Formatting_Autop::test_that_wpautop_treats_block_level_elements_as_blocks
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
  <pre>foo</pre>
 -<select>foo</select>
 -<option>foo</option>
 +<p><select>foo</select></p>
 +<p><option>foo</option></p>

 @@ @@
  <figure>foo</figure>
 -<figcaption>foo</figcaption>
 +<p><figcaption>foo</figcaption></p>
  <details>foo</details>
  <menu>foo</menu>
  <summary>foo</summary>'
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28638>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list