Make WordPress Core


Ignore:
Timestamp:
07/19/2012 02:41:52 PM (13 years ago)
Author:
nacin
Message:

Make some sense of the original formatting tests from [121].

  • Dissolve the old directories, moving data into /data/formatting/ and tests into /tests/formatting/.
  • Remove the old formatting testcase, instead using straight file() calls functioning as PHPUnit data providers.
  • Bring back the tests for the "funky javascript fix" in the form of testing _convert_urlencoded_to_entities(), removed in [403].

see #42, see #12.

Location:
trunk/data/formatting/utf-8
Files:
1 added
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/data/formatting/utf-8/entitize.py

    r909 r915  
     1# Generates entitized.txt from utf-8.txt.
     2# Used by Test_Convert_UrlEncoded_To_Entities.
     3
    14import codecs
    25import sys
     
    1114    args = sys.argv[1:]
    1215    if args and args[0] in ("-h", "--help"):
    13         print "Usage: python entitize.py < utf8-lines.txt > entitized-lines.txt"
     16        print "Usage: python entitize.py < utf-8.txt > entitized.txt"
    1417        sys.exit(2)
    1518
Note: See TracChangeset for help on using the changeset viewer.