Changeset 34220
- Timestamp:
- 03/09/08 20:52:46 (2 months ago)
- Files:
-
- in-series/branches/maintenance/3.x/3.1/in-series-test/README (modified) (2 diffs)
- in-series/branches/maintenance/3.x/3.1/in-series-test/patches (added)
- in-series/branches/maintenance/3.x/3.1/in-series-test/patches/000_load_as_xml.diff (added)
- in-series/branches/maintenance/3.x/3.1/in-series-test/patches/001_decode_all_html_entities.diff (added)
- in-series/branches/maintenance/3.x/3.1/in-series-test/patches/002_referer.diff (added)
- in-series/branches/maintenance/3.x/3.1/in-series-test/simpletest_tweaks.diff (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
in-series/branches/maintenance/3.x/3.1/in-series-test/README
r34055 r34220 2 2 repository is referenced, and will show up in the simpletest directory. However, 3 3 some 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 can4 tests to run. The modifications are stored in the patches directory, and can 5 5 be applied with the following command line (on most UNIX/Linux-like systems): 6 6 7 7 8 patch -p0 < simpletest_tweaks.diff 8 cd patches 9 patch -p0 < [patch_name].diff 9 10 11 12 The patches should be applied in the order indicated (000, then 001, etc.). 10 13 11 14 Additionally, WordPress has some bugs (gasp!). The default theme needs to be 12 15 hacked 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 "Permanent16 versions 2.0--2.2, search the theme for all instances of "Permanent 14 17 Link". Replace the immediately following occurrence of <?php the_title() ?> 15 18 with <?php echo htmlspecialchars(strip_tags(get_the_title()), ENT_QUOTES); ?>. … … 20 23 should allow the pages to validate, or at least get close enough to 21 24 well-formedness to allow the automated testing to work. 25 26 Another WordPress tweak is required for testing widgets. WordPress has an 27 utterly inane, javascript-only widget configuration interface. This is 28 unpleasant to script with SimpleTest, because the framework does not provide for 29 altering the values of hidden fields (i.e., it behaves as a browser with 30 JavaScript turned off). Therefore, to allow widgets to be enabled and disabled 31 through automation, it is required that the hidden "order" field in the 32 wp-admin/widgets.php file be changed to be a "text" field instead. This is only 33 applicable to WordPress 2.2+.
