nicolasconnault
|
251aa315d1
|
Removed breaking unit test, originally set up to test xhtml validity throughout the site.
|
2007-05-09 05:42:06 +00:00 |
|
nicolasconnault
|
2c72af1f08
|
MDL-9506 Stuck on grade_category->generate_grades. I cannot figure out how to recursively generate raw grades for each category's associated grade_item based on that category's children categories and items. Heaps of other changes with this commit, including a new grade_object::update_from_db() method, which uses the state of the record in DB to update the current object with a matching id (useful when you insert an incomplete object in the DB and want to get the default values as set up in the DB).
|
2007-05-08 08:01:55 +00:00 |
|
nicolasconnault
|
0aa32279b7
|
MDL-9506 Issue 1: adjusting a gradeitem's value would result in a grade_final object with gradevalue assigned, even when a gradescale should have been assigned. Issue 2: double grade_final entries when calling grade_item->load_final() after grade_item->generate_final(). Issue 3: Calling grade_item->update_final_grade() without first calling grade_item->generate_final() would result in fatal error. generate_final() is now called if the raw and final arrays' sizes don't match.
|
2007-05-08 02:20:26 +00:00 |
|
nicolasconnault
|
f151b07393
|
MDL-9506 Added category's associated grade_item object, and changed unit tests database data so that it creates its own test tables.
|
2007-05-07 07:33:11 +00:00 |
|
nicolasconnault
|
712d500777
|
MDL-9506 Removed implicit loading of associated objects from constructors (grade_item and grade_grades_raw) to avoid very large numbers of sql queries when only little data is required. The load_scale() method, for example, needs to be called explicitly.
|
2007-05-07 02:04:06 +00:00 |
|
nicolasconnault
|
46566dd8c6
|
MDL-9506 Moved unit tests in a simpletest subfolder so they can be automatically grouped. Added grade_history and grade_text object and another heap of small implementations.
|
2007-05-04 07:40:51 +00:00 |
|
nicolasconnault
|
52b72d77c5
|
MDL-9506 Reorganised the gradebook unit tests into more manageable classes.
|
2007-05-04 02:31:16 +00:00 |
|
nicolasconnault
|
5501446df5
|
MDL-9506 Added grade_outcome.php. Also added unit test for creation of log in history table when grade_raw is updated.
|
2007-05-03 08:51:48 +00:00 |
|
nicolasconnault
|
4d0263c6e2
|
MDL-9506 See previous revision. This adds same functionality but in relation to the hidden field.
|
2007-05-03 08:08:38 +00:00 |
|
nicolasconnault
|
fae51e127b
|
MDL-9506 Added grade_item::toggle_locking and unit tests. Affects all final grades if reqested.
|
2007-05-03 08:02:51 +00:00 |
|
nicolasconnault
|
27f95e9b47
|
MDL-9506 Upgraded grade_item::adjust_grade with Darlene's more elegant formula. Completed grade_category::get_children($depth, $arraytype). Added 4 constants to help that method. Added and passed all unit tests (111 now).
|
2007-05-03 07:10:22 +00:00 |
|
nicolasconnault
|
7c8a963f7b
|
MDL-9506 Finished all unit test stubs, another batch to write soon. One one test fails because I haven't implemented recursive category hierarchy output yet, and not sure if it's needed. A grade_category already returns its immediate children, and that may be enough.
|
2007-05-02 07:20:13 +00:00 |
|
toyomoyo
|
9e2e5943dc
|
modifications to eventslib
|
2007-05-01 08:59:39 +00:00 |
|
nicolasconnault
|
ce385eb4e3
|
MDL-9506 Implemented category path and depth, and wrote unit tests for them.
|
2007-05-01 08:56:37 +00:00 |
|
nicolasconnault
|
d5bdb228a5
|
MDL-9506 Finished grade_item::adjust_grade, which now also adjusts scale grades correctly. Added grade_scale object to wrap around the current non-normalized scale DB table. When/if we upgrade to grade_scales and grade_scale_items DB tables, changing the grade_scale class will be easy.
|
2007-05-01 05:45:54 +00:00 |
|
nicolasconnault
|
d8676dc32e
|
MDL-9506 Implemented rescaling and grade adjustment formulas in grade_item::adjust_grade(). Also wrote unit tests.
|
2007-05-01 03:18:55 +00:00 |
|
nicolasconnault
|
b3f111607f
|
MDL-9506 Lots more unit tests, and work on grade_item::update method and associated functionality. 3 unit tests currently fail, so more work needed.
|
2007-04-30 09:09:32 +00:00 |
|
nicolasconnault
|
869807d8e4
|
MLD-9506 Corrected update_final_grades() in grade_item, which was updating the grade_raw table
instead of grade_final. Made a few other adjustments.
|
2007-04-30 05:25:19 +00:00 |
|
nicolasconnault
|
a8995b34df
|
MDL-9506 Added grade_grades_raw as a proper object used by grade_item. Also added a global function in gradelib for updating grade_grades_raw objects.
|
2007-04-30 04:49:25 +00:00 |
|
nicolasconnault
|
f440c2d1b1
|
MDL-9506 Implemented get_raw and get_final, plus added method_exists() checks for each unit test.
|
2007-04-30 02:05:51 +00:00 |
|
tjhunt
|
d4bf4b8695
|
Fix syntax error.
|
2007-04-27 10:37:21 +00:00 |
|
nicolasconnault
|
e5c674f1e1
|
MDL-9506 Added raw and final grade objects, plus more work in unit tests.
|
2007-04-27 08:12:16 +00:00 |
|
toyomoyo
|
8aaf935a1f
|
some events code/testing code
|
2007-04-26 08:50:29 +00:00 |
|
nicolasconnault
|
60cf74305d
|
MDL-9506 More work in the unit tests
|
2007-04-26 08:29:30 +00:00 |
|
nicolasconnault
|
f9f4a93b4e
|
MDL-9506 Refactored gradelib.php: an abstract class (php5 in mind) holds data and methods common
to all grade_* objects. The unit test file has also been refactored to improve clarity.
|
2007-04-26 07:14:12 +00:00 |
|
nicolasconnault
|
27fbffb62b
|
MDL-9506 More implementation of gradebook API and more unit tests.
|
2007-04-26 04:39:40 +00:00 |
|
nicolasconnault
|
619a59a70f
|
MDL-9506 Set up the unit test bed and continued to implement gradebook API.
|
2007-04-24 08:50:19 +00:00 |
|
nicolasconnault
|
5834dcdb1d
|
MDL-9506 First draft of gradelib, and the stubs for the unit tests.
|
2007-04-23 09:00:32 +00:00 |
|
nicolasconnault
|
facb512c06
|
MDL-8792 - Simply added help icon to explain the options available regarding embedding media files in the site.
|
2007-03-12 05:46:41 +00:00 |
|
nicolasconnault
|
9af052f59f
|
Stub for a web-based integration test
|
2007-03-06 05:09:28 +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 |
|
nicolasconnault
|
c2a9fc9166
|
Issue 8417:
Added support for array of tested browsers to be passed to ajaxenabled()
Merged in from MOODLE_18_STABLE
|
2007-03-01 02:08:06 +00:00 |
|
nicolasconnault
|
d499142e5a
|
Safari 2.0 and Opera 9.0 are now detected and supported for YUI. However, preliminary tests show that drag&drop behaviour is very slow on Opera and user-unfriendly on both browsers. A YUI debug window also pops up on Safari.
I added a unit test for ajaxlib.php
Issue MDL-8417
Merged from MOODLE_18_STABLE
|
2007-03-01 01:31:37 +00:00 |
|
moodler
|
239c15765c
|
Merged from 1.8 stable
|
2007-02-28 07:58:34 +00:00 |
|
moodler
|
6ba65fa08d
|
Merged Nicolas' changes from MDL-8582 into HEAD.
|
2007-02-28 06:25:22 +00:00 |
|
tjhunt
|
7c9d46c96e
|
Related to MDL-6249 - unit tests for address_in_subnet. Merged from MOODLE_17_STABLE.
|
2006-10-16 13:40:26 +00:00 |
|
tjhunt
|
3830553d47
|
Avoid reserved words in dmllib unit tests.
(Except that TEXT is not a reserved word after all, although some things like TINYTEXT are. Wheird!)
|
2006-08-24 16:56:59 +00:00 |
|
tjhunt
|
707b5c9953
|
Renamed unit tests to match Eloy's work.
|
2006-08-19 07:47:41 +00:00 |
|
tjhunt
|
5553c2ec47
|
New function record_exists_select with unit tests for all the record_exists_* functions.
|
2006-08-18 11:28:30 +00:00 |
|
tjhunt
|
cfa27f4472
|
Fix bug in new function get_field_select(), and this time add a unittest to see if the new function works!
|
2006-08-17 16:28:29 +00:00 |
|
tjhunt
|
9a1e5f0a5f
|
Clarified unit test failure message.
|
2006-07-27 10:43:14 +00:00 |
|
tjhunt
|
3ef8c9362d
|
Bug #5979 - Check in the OU's unit testing framework. Docs at http://docs.moodle.org/en/Unit_tests
|
2006-06-30 14:59:05 +00:00 |
|