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/urlencode.py

    r909 r915  
    1 # Generates test data for the utf8_uri_encode function in formatting.php
    2 # Pipe UTF-8 data to stdin and accept it from stdout
     1# Generates urlencoded.txt from utf-8.txt.
     2# Used for Test_UTF8_URI_Encode.
    33
    44import urllib, codecs, re
     
    2323    args = sys.argv[1:]
    2424    if args and args[0] in ("-h", "--help"):
    25         print "Usage: python urlencode.py < utf8-lines.txt > utf8-urlencoded-lines.txt"
     25        print "Usage: python urlencode.py < utf-8.txt > urlencoded.txt"
    2626        sys.exit(2)
    2727
Note: See TracChangeset for help on using the changeset viewer.