Commit Graph

40 Commits

Author SHA1 Message Date
Tim Hunt 4e92a71fb3 MDL-29462 html_to_text('0') gives '', not '0'. 2011-09-21 16:42:33 +01:00
Tim Hunt 0370e3ab0d MDL-27736 html2text add unit test for Eloy's new code. 2011-06-06 16:54:13 +01:00
Petr Skoda a32b68475a MDL-25826 add more HTMLPurifier integration tests 2011-04-09 11:46:13 +02:00
sam marshall b031caf858 lib MDL-26423 Added support for ->allowid option in format_text 2011-03-04 15:53:10 +00:00
Tim Hunt 6cc09234be MDL-24060 text_to_html tests. Make sure alt text for LaTeX images doesn't break. 2010-12-20 15:01:43 +01:00
Tim Hunt 6cb034c9d2 MDL-25018 stop html_to_text from breaking utf-8 multibyte characters. 2010-11-02 20:03:48 +00:00
Petr Skoda e6906df277 MDL-24523 adding note that clean_text() is designed to work with htm ltext only, technically we can not clean other formats before the conversion, sorry 2010-10-24 11:48:45 +00:00
David Mudrak e0ebc88e9d MDL-24542 Removing convert_urls_into_links() from the core 2010-10-07 08:59:15 +00:00
Petr Skoda f66af8875b MDL-23979 fixed non standard entities result 2010-08-28 12:32:58 +00:00
Tim Hunt a194c2187b weblib MDL-22664 html_to_text should not strip images, it should replace them by their alt text.
Also, an new optional argument to html_to_text to control word-wrapping.
2010-08-04 17:40:01 +00:00
Jonathan Harker 355593f123 MDL-19418 Fix up a couple of stray deprecated ereg and eregi_replace calls. 2010-07-20 06:13:18 +00:00
Petr Skoda 5509254c25 MDL-21233 prepare_url obsoleted by new html_writer and changes in moodle_url 2010-01-17 10:59:07 +00:00
Andrew Davis 0ae98120ae weblib MDL-21183 Commented out some unreasonable unit tests 2010-01-14 02:17:24 +00:00
Eloy Lafuente ecbeab1a95 MDL-21296 - Adding timing info to test in order to compare results ; merged from 19_STABLE 2010-01-12 14:08:50 +00:00
Eloy Lafuente 9dd05f1db7 MDL-21168 - Added test for URLs with encoded paths and queries and fixed some onew. Merged from 19_STABLE 2010-01-12 13:33:25 +00:00
Andrew Davis 330cc667b0 weblib MDL-21168 Added some more unit tests 2010-01-11 06:26:59 +00:00
Eloy Lafuente fd81d5bd37 MDL-21168 avoid http://www.whatever to be linked twice ; merged from 19_STABLE 2010-01-08 22:25:13 +00:00
Eloy Lafuente 0559076a3c MDL-21168 convert_urls_into_links() - minor changes to tests (code formatting,
utf_decode() out and properly escape % chars. Merged from 19_STABLE
2010-01-08 16:44:11 +00:00
Andrew Davis c013b31695 weblib MDL-21168 improved convert_urls_into_links 2009-12-24 06:44:51 +00:00
Andrew Davis 53ad47f22b weblib MDL-20826 made convert_urls_into_links() produce xhtml compliant links 2009-12-18 04:13:35 +00:00
Andrew Davis 9c7a301b4d weblib MDL-20826 improved convert_urls_into_links() 2009-12-17 07:52:56 +00:00
Eloy Lafuente b9ad17beb6 MDL-20826 convert_urls_into_links() - target="_blank" is out in 2.0 (XHTML I guess).
Adjusting tests for that.
2009-11-30 15:21:29 +00:00
Eloy Lafuente db4f638aa9 MDL-20826 convert_urls_into_links() - add some test to reveal (side?) problems
and allow comparing of alternatives. Merged from 19_STABLE
2009-11-30 02:06:43 +00:00
Moodle HQ git importer 8926f8449f Fixing drift between CVS and git 2009-11-02 00:32:03 +00:00
nicolasconnault 827b2f7a66 MDL-9644 Added a compare() method to moodle_url 2009-08-10 03:04:01 +00:00
nicolasconnault f8065dd287 MDL-19756 Migrated the following functions from weblib to outputlib:
1. button_to_popup_window
2. link_to_popup_window
3. print_single_button
4. print_spacer
5. print_file_picture (deprecated)
6. print_user_picture
7. print_png (deprecated)
8. helpbutton
9. doclink
10. print_paging_bar
11. notice_yesno
2009-07-27 10:33:00 +00:00
stronk7 081a63a9eb MDL-19579 code coverage - add more initial $includecoverage attributes 2009-06-26 17:49:15 +00:00
nicolasconnault 31c2087d1e MDL-19566 Refactored some of the more complex regular expressions in their own function and added unit tests for them. 2009-06-22 06:07:56 +00:00
nicolasconnault 6dbcaceef1 MDL-19418 Replaced ereg* by preg* 2009-06-22 01:22:37 +00:00
fmarier 3e83641fdc MDL-2794 testweblib: adapt the unit tests to the output of new html2text library 2009-06-15 06:08:42 +00:00
tjhunt 4e42a90c53 weblib: Fix test_format_text_email and unit tests. 2009-03-23 03:41:34 +00:00
skodak cc4245a3cd MDL-16483 - stopped using MoodleUnitTestCase in tests where $DB not needed 2009-01-10 13:23:37 +00:00
tjhunt 9289e4c90e weblib: MDL-17606 Make the highlight function better, with unit tests. 2008-12-11 10:33:57 +00:00
nicolasconnault b9c639d6c2 MDL-16483 Refactored install/upgrade code into lib/adminlib. Created an intermediate MoodleUnitTestCase class that overrides simpletest's constructor, destructor and setup/teardown methods. All moodle unit tests must extend this class. 2008-09-16 12:19:43 +00:00
sam_marshall 977b3d3145 MDL-15263 Fixed numeric entities remaining after html_to_text 2008-06-16 14:07:47 +00:00
skodak cdbbd26f80 MDL-10064 global $CFG in unit test files is non standard, it is recommended to use MOODLE_INTERNAL test in all library files 2007-06-09 16:32:36 +00:00
skodak 52f81103d3 MDL-10063 simpletestlib.php included from majority of unit tests - let's include it once from the test runner itself 2007-06-09 16:17:33 +00:00
nicolasconnault a205dcdc09 Upgraded weblib::format_string() so it accepts unicode htmlentities. Also added more unit tests, including a stub for an integration web-based test. 2007-03-06 05:05:45 +00:00
nicolasconnault dacb47c0ca MDL-8691 - Finally found the source of the error and fixed it. Add to apply s(format_string($week_summary)) on the optgroup's label. 2007-03-06 02:59:25 +00:00
moodler 6ba65fa08d Merged Nicolas' changes from MDL-8582 into HEAD. 2007-02-28 06:25:22 +00:00