[wp-trac] [WordPress Trac] #25856: debug of wpautop function with Unit Tests

WordPress Trac noreply at wordpress.org
Fri Dec 20 15:44:28 UTC 2013


#25856: debug of wpautop function with Unit Tests
-------------------------+-----------------------------
 Reporter:  mdbitz       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Formatting   |     Version:  3.8
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------

Comment (by mdbitz):

 Replying to [comment:11 bpetty]:
 > - Certainly `test_no_format_style_tags()` and
 `test_no_format_script_tags()` don't actually need full code samples to
 test that they work properly, maybe only a couple lines of JS/CSS, and
 preferably something copied from WP itself ideally, rather than some
 random Google Analytics code snippet.

 We can switch these to any JS/CSS lines as long as they contain comments
 and multiple new lines it will allow us to verify the logic.

 > - Why do we need all these references to some arbitrary (but actually
 real) blog: "blogyul.miqrogroove.com"? Do we have appropriate copyright
 permissions on the content copied from there (arbitrary content published
 on a WP blog isn't automatically GPL)?

 This content came from examples linked to previous tickets as such was
 used as a valid test scenario. We could replace if desired, would just
 need to create a large content section with elements.

 > - What is this Romanian text used? It looks like legal code, so I'm
 guessing it might actually be public domain, but not all countries
 actually have public domain, nor does public domain mean the same thing in
 all countries. No-one has even asked or said what it is though and why
 it's safe. I'm certain we can find better test content for that as well.

 Same as above this came from a previuos ticket. Could swap for lorem ipsum
 or public domain text of same/greater length and new lines.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25856#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list