Commit graph

573 commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
7ca5dd85dc MDL-31718 add a few more tests to check that lens and tags are properly handled 2012-03-13 13:13:31 +01:00
Eloy Lafuente (stronk7)
45c41bdc06 Merge branch 'w11_MDL-31718_m23_shortentext' of git://github.com/skodak/moodle 2012-03-13 12:51:41 +01:00
Eloy Lafuente (stronk7)
649fd88d8f MDL-31805 html2text - change tests acordingly with the new version
With the new version in place, both <th> and <a> contents are
being handled by the conversion. Accomodate existing tests to
that change.
2012-03-12 21:17:22 +01:00
Petr Skoda
b226ef619f MDL-31805 migrate html2text tests from web lib to new location
Note: the handling of <p> seems to have changed, it does double newlines only between paragraphs now (this makes sense to me).
2012-03-12 17:18:55 +01:00
Petr Skoda
e235f2a36e MDL-31718 utf-8 support in shorten_text() 2012-03-11 21:31:33 +01:00
Petr Skoda
e60ba0c919 MDL-31805 test invalid html processing in html2text 2012-03-10 12:46:11 +01:00
Petr Skoda
04673aee32 MDL-31805 add tests for our html2text tweaks 2012-03-10 12:38:52 +01:00
Eloy Lafuente (stronk7)
2ed7cc2730 Merge branch 'w10_MDL-31301_m23_textlibcleanup' of git://github.com/skodak/moodle 2012-03-06 16:06:53 +01:00
Petr Skoda
3fed29a792 MDL-31301 move textlib_get_instance() to deprecatedlib 2012-03-03 11:46:33 +01:00
Petr Skoda
f8311defeb MDL-31301 use static textlib methods 2012-03-03 11:46:13 +01:00
Petr Skoda
51a1c153d2 MDL-31785 fix and improve htmlpurifier tests 2012-03-03 11:23:36 +01:00
Eloy Lafuente (stronk7)
9f733c98a1 MDL-29161 weblib: added one more test about un-keyed array params 2012-02-27 22:20:34 +01:00
Tim Hunt
ab82976f92 MDL-29161 weblib: moodle_ulr::out does not cope with array params. 2012-02-23 12:07:28 +00:00
sam marshall
d9498b3805 MDL-31514 Lib: Time format to remove unwanted zeros caused errors on Windows servers 2012-02-17 10:33:07 +00:00
sam marshall
edcf82d5a3 MDL-31482 Lib: IE8/IE7 (even with stupid user agent) should not be 'legacy' device type 2012-02-07 17:41:13 +00:00
Eloy Lafuente (stronk7)
9a50502acc Merge branch 'w04_MDL-31238_m23_php54' of git://github.com/skodak/moodle 2012-01-24 23:54:44 +01:00
Aparup Banerjee
3dd00d7030 Merge branch 'wip-MDL-29941-master' of git://github.com/samhemelryk/moodle 2012-01-24 20:23:05 +08:00
Eloy Lafuente (stronk7)
14926a50c7 Merge branch 'w04_MDL-31180_m23_closedproperty' of git://github.com/skodak/moodle 2012-01-23 01:10:38 +01:00
Petr Skoda
4ae40aa577 MDL-31180 fix coding error in fake_recordset iterator 2012-01-21 17:13:39 +01:00
Petr Skoda
aeacb7b128 MDL-31181 fix missing global $CFG that was breaking unit test teardown 2012-01-21 17:07:59 +01:00
Petr Skoda
268b6709ec MDL-31238 always return object for plugin settings from get_config()
This prevents multiple creations of objects from NULL which is note a warnings in php54
2012-01-21 11:14:37 +01:00
Sam Hemelryk
ff8e5d47f8 MDL-29941 csslib: Improved PHPdocs and fixed up 4 and 5 char colour handling plus unittests 2012-01-20 11:05:38 +08:00
Sam Hemelryk
f37f608e75 MDL-29941 csslib: Peer-review documentation changes 2012-01-20 11:02:06 +08:00
Sam Hemelryk
6bbd4858b7 MDL-29941 csslib: Last minute cleanup before integration review
* Fixed reversed border styles.
* Added support for out of order background styles.
* Added more CSS tests again.
* Added better validation of CSS widths
2012-01-20 11:02:06 +08:00
Sam Hemelryk
50836f26ca MDL-29941 csslib: Improved unit tests and fixed bugs with background and border partial style optimisation 2012-01-20 11:02:06 +08:00
Sam Hemelryk
1d1d807ea6 MDL-29941 csslib: Made optimisation an experimental option 2012-01-20 11:02:05 +08:00
Sam Hemelryk
0e641c7437 MDL-29941 csslib: A CSS optimiser has been added to process our mountain of CSS 2012-01-20 11:02:05 +08:00
Eloy Lafuente (stronk7)
7fb7e9835a MDL-31006 revert partially @ get_config()
The change from null to stdClass() in get_config() was leading to:

1) unit tests not passing.
2) non-equivalent evaluation in conditions (null evals false,
   stdClassi() evals true)
2012-01-18 02:09:46 +01:00
Petr Skoda
927010240f MDL-31006 some more PHP54 notices
PHP54 compatibility - PhpStorm IDE is the best tool for this kind of work!!
2012-01-18 01:17:25 +01:00
Eloy Lafuente (stronk7)
4374d03158 Merge branch 'w03_MDL-31142_m23_slowiconv' of git://github.com/skodak/moodle 2012-01-17 01:36:03 +01:00
Petr Skoda
ca281c51bb MDL-31142 fix textlib::substr() performance, invalid length in iconv_substr; use mbstring by default 2012-01-16 09:16:14 +01:00
Dan Poltawski
48ddc9bfd6 MDL-29091 weblib - Introduce out_as_local_url() method to moodle_url
This can be used for passing around PARAM_LOCALURL's where necessary
stripping the wwwroot
2012-01-13 10:16:52 +00:00
Tim Hunt
d07f7be890 MDL-31101 format_string: Don't mangle < and > in strings like x < 1. 2012-01-10 14:52:19 +00:00
Eloy Lafuente (stronk7)
bb2308a33a Merge branch 'wip-MDL-26155-m23' of git://github.com/samhemelryk/moodle
Conflicts:
	admin/settings/security.php
2012-01-03 17:26:31 +01:00
Sam Hemelryk
e6d40f8ac2 MDL-26155 string: Implemented moodle_string class 2012-01-03 09:04:58 +13:00
Tim Hunt
820b41e34f MDL-30168 formslib: untangle automatic id generation.
Previously, we had overridden the _generateId method in almost all
subclasses; and then we mostly, but not always; ignored the value that
was generated there, and instead generated new (nicer) values in
MoodleQuickForm_Renderer::renderElement. Of course, that is not really a
logical place to (re)generate ids.

I have fixed the code so that the _generateId method now uses the 'nice
id' algorithm from renderElement. This should make the whole code flow
more logical.

This make all our overriding of _generateId unnecessary.

We do need a special _generateId for radio buttons, because you often
have different radio buttons with the same name but different values.

This change should only change the ids on radio, checkbox and
advcheckbox elements. Previously, those were essentially random, so I
don't think anyone could have been relying on the particular values.

This commit also has new unit tests, first to test the basic _generateId
algorithm, and then to create and render an example form (including some
tricky things like repeat_elements) and chech the acutal ids in the
generated HTML.
2011-12-23 11:51:45 +00:00
Eloy Lafuente (stronk7)
cb21d040f4 MDL-20245 grade: added tests for set_user_preference() and the 1333 limit
Added to tests to check that both the "limit" case of using 1333
chars is allowed and 1334 causes coding exception to happen
2011-12-21 16:28:22 +01:00
Eloy Lafuente (stronk7)
311b953168 Merge branch 'w51_MDL-30761_m23_slowmysql' of git://github.com/skodak/moodle 2011-12-20 22:17:21 +01:00
Petr Skoda
8a238aee75 MDL-30761 fix simpletest regression caused by rubrics 2011-12-16 14:22:20 +01:00
Justin Filip
9d6fd25a05 MDL-30741 Adding a new test to check for incorrect parsing of complicate HTML with a PRE tag. 2011-12-15 11:11:35 -05:00
sam marshall
0c9cb1bc19 MDL-30266 completionlib fix unit test breakage (regression) 2011-11-15 14:05:20 +00:00
sam marshall
a1c947bde2 MDL-26647 (2) New lib function get_extra_user_fields and related
get_extra_user_fields to get a list of extra user fields for display (that are permitted for current user in given context). get_extra_user_fields_sql returns the same thing as a SELECT list.

get_user_field_name returns the display name of a user field (basically just get_string($field) except phone1=>phone)
2011-11-04 13:57:10 +00:00
Petr Skoda
73b309e6a3 MDL-28627 remove buggy and obsolete KSES cleaning 2011-10-22 09:25:06 +02:00
Eloy Lafuente (stronk7)
2c6da73106 MDL-29602 unittest - fixing other tests to work with new accesslib 2011-10-19 01:37:30 +02:00
Petr Skoda
e922fe23b6 MDL-29602 accesslib improvements
Refactoring and improvements of the accesslib.php library including prevention of access for not-logged-in users when forcelogin enabled, improved context caching, OOP refactoring of contexts, fixed context loading, deduplication of role definitions in user sessions, installation improvements, decoupling of enrolment checking from capability loading, added detection of deleted and non-existent users in has_capability(), new function accesslib test, auth and enrol upgrade notes.

More details are available in tracker subtasks.
2011-10-16 14:05:18 +02:00
Eloy Lafuente (stronk7)
a7f99cf02e MDL-29677 unit tests - missing global was causing tons of incorrect debugging info 2011-10-07 01:24:18 +02:00
Eloy Lafuente (stronk7)
e135797586 Merge branch 'w38_MDL-29401_m22_frankenstyle' of git://github.com/skodak/moodle 2011-09-27 00:00:20 +02:00
Petr Skoda
a5bb3a70aa MDL-29401 few more tests for Eloy 2011-09-26 23:26:09 +02:00
Eloy Lafuente (stronk7)
c430009676 Merge branch 'MDL-29462' of git://github.com/timhunt/moodle 2011-09-26 22:40:32 +02:00
Petr Skoda
aff24313be MDL-29401 introduce new frankenstyle PARAM types
New PARAM_COMPONENT, PARAM_AREA and PARAM_PLUGIN + fixing of hopefully all current incorrect parameter types. This should help with diagnosing of incorrectly named 3rd party plugins too.
2011-09-25 09:59:55 +02:00