Changeset 34220

Show
Ignore:
Timestamp:
03/09/08 20:52:46 (2 months ago)
Author:
Quandary
Message:

Move simpletest tweaks into discrete patches.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • in-series/branches/maintenance/3.x/3.1/in-series-test/README

    r34055 r34220  
    22repository is referenced, and will show up in the simpletest directory. However, 
    33some modifications to the stock simpletest code are required in order for the 
    4 tests to run. The modifications are stored in simpletest_tweaks.diff, and can 
     4tests to run. The modifications are stored in the patches directory, and can 
    55be applied with the following command line (on most UNIX/Linux-like systems): 
    66 
    77 
    8 patch -p0 < simpletest_tweaks.diff 
     8cd patches 
     9patch -p0 < [patch_name].diff 
    910 
     11 
     12The patches should be applied in the order indicated (000, then 001, etc.). 
    1013 
    1114Additionally, WordPress has some bugs (gasp!). The default theme needs to be 
    1215hacked a bit so that the pages generate valid XHTML. Specifically, for all 
    13 versions 2.0+ (at least), search the theme for all instances of "Permanent 
     16versions 2.0--2.2, search the theme for all instances of "Permanent 
    1417Link". Replace the immediately following occurrence of <?php the_title() ?> 
    1518with <?php echo htmlspecialchars(strip_tags(get_the_title()), ENT_QUOTES); ?>. 
     
    2023should allow the pages to validate, or at least get close enough to 
    2124well-formedness to allow the automated testing to work. 
     25 
     26Another WordPress tweak is required for testing widgets. WordPress has an 
     27utterly inane, javascript-only widget configuration interface. This is 
     28unpleasant to script with SimpleTest, because the framework does not provide for 
     29altering the values of hidden fields (i.e., it behaves as a browser with 
     30JavaScript turned off). Therefore, to allow widgets to be enabled and disabled 
     31through automation, it is required that the hidden "order" field in the 
     32wp-admin/widgets.php file be changed to be a "text" field instead. This is only 
     33applicable to WordPress 2.2+.