David Monllao
9a1f4922bd
MDL-39795 behat: Improving find-texts-in-page-contents performance
2013-05-27 14:24:20 +08:00
Dan Poltawski
87787191e4
Merge branch 'MDL-38239-master' of git://github.com/StudiUM/moodle
2013-05-27 14:04:04 +08:00
Petr Škoda
5ce443a1b1
MDL-39676 improve get_role_users() unit tests
2013-05-25 10:09:42 +02:00
Gilles-Philippe Leblanc
d381fb7776
MDL-38239 gradebook: Importing grades from a .txt file with commas for decimals causes an error
2013-05-21 14:15:26 -04:00
Eloy Lafuente (stronk7)
388b7d7d98
Merge branch 'MDL-39638_master' of git://github.com/dmonllao/moodle
2013-05-21 00:59:42 +02:00
Eloy Lafuente (stronk7)
5e1a48df97
Merge branch 'MDL-39717_master' of git://github.com/dmonllao/moodle
2013-05-21 00:44:05 +02:00
David Monllao
7daab4016d
MDL-39717 behat: Add info to experimental steps definitions
...
JS modal dialogs and drag & drop should be
considered experimental as the steps are not
working as expected in all OS/browser combinations.
2013-05-17 11:23:05 +08:00
David Monllao
c4509f8084
MDL-39638 behat: New step to collapse nodes based on the expand nodes
...
Also updating steps with a collapse behaviour.
2013-05-16 12:43:54 +08:00
David Monllao
870349ee67
MDL-39528 behat: Avoid modal window suite failure
...
Catching JS alerts/confirms exceptions and
auto-accepting them before each test run to
avoid chained scenarios failures.
2013-05-16 10:11:40 +08:00
Frederic Massart
188c04b0a8
MDL-39579 form: Type can be set on repeated elements in a group
2013-05-10 12:05:43 +08:00
Eloy Lafuente (stronk7)
da2cff35c5
Merge branch 'MDL-38885-master-int' of git://github.com/FMCorz/moodle
2013-05-10 03:16:09 +02:00
Frederic Massart
d5909fd144
MDL-38885 form: Fix comments and stricter unit test
2013-05-10 08:34:59 +08:00
Frederic Massart
a85f745d50
MDL-38885 form: Unit tests for data cleaning
2013-05-10 08:17:40 +08:00
Frederic Massart
9654f68ae9
MDL-38885 form: More unit testing for missing type detection
2013-05-10 08:17:40 +08:00
David Monllao
1fb9715721
MDL-39051 behat: Fixing extra interactions
...
When the elements to interact with are not
available anymore.
2013-05-09 17:21:19 +08:00
David Monllao
217e8e59e5
MDL-39051 behat: Fix issue after closing popup windows
...
When a step closes a popup window the page DOM is not available
until we switch again to the main window; we should avoid exceptions
at framework level when hooking the after step process, this
includes the new exceptions catcher modification.
2013-05-09 17:21:06 +08:00
David Monllao
563514b10c
MDL-39051 behat: New general steps definitions
...
- To accept JS alerts
- To drag & drop elements
2013-05-09 14:27:41 +08:00
Damyon Wiese
e9df9e8f7a
MDL-38289: Custom profile fields - added unit test
...
Added a unit test to cover the case when you are fetching a custom
profile field but you are not logged in.
2013-05-09 10:29:51 +08:00
Sam Hemelryk
b3a9bf23f5
Merge branch 'MDL-39481_master' of git://github.com/dmonllao/moodle
2013-05-08 09:54:13 +12:00
Eloy Lafuente (stronk7)
5b003e9cdd
Merge branch 'MDL-39478_master' of git://github.com/dmonllao/moodle
2013-05-07 17:52:00 +02:00
Damyon Wiese
fc075899e0
Merge branch 'wip-MDL-38596-master' of git://github.com/marinaglancy/moodle
2013-05-07 14:09:56 +08:00
David Monllao
cfcbc34a61
MDL-39478 behat: New constant to detect when the test site is running
...
Also removing an unused var and method.
2013-05-07 11:12:01 +08:00
Damyon Wiese
4017ea2fce
Merge branch 'MDL-39445' of git://github.com/timhunt/moodle
2013-05-06 15:15:02 +08:00
Marina Glancy
31b0530aa6
MDL-38596 Optimise SQL in preloading course contacts for number of courses
2013-05-06 14:15:22 +10:00
Eloy Lafuente (stronk7)
081bfdc5ff
Merge branch 'MDL-39348_master' of git://github.com/dmonllao/moodle
2013-05-06 01:49:51 +02:00
David Monllao
b32ca4caf9
MDL-39481 behat: Provide info about init.php
2013-05-03 12:04:42 +08:00
David Monllao
28abad1ab2
MDL-39348 behat: Compatibility with Safari and IE
...
Also changing from SeleniumDriver checking
to GoutteDriver as is less probably to change
goutte than to change selenium.
2013-05-03 10:43:06 +08:00
David Monllao
c59e52f561
MDL-39348 behat: Switching to wait which does not conflict with IE
...
Also solving bug with DOM ready, timeout
was set to self::TIMEOUT miliseconds not
seconds.
2013-05-03 10:16:44 +08:00
David Monllao
00ea74cb54
MDL-39348 behat: Chaining strings instead of splitting strings in lines
2013-05-03 10:16:44 +08:00
David Monllao
bbd802f7b7
MDL-38041 behat: Also fail tests if there is any other backtrace
2013-05-03 10:05:08 +08:00
David Monllao
90ed22ab70
MDL-38041 behat: Capturing also PHP debug messages
2013-05-03 10:05:08 +08:00
David Monllao
5f4b4e918d
MDL-38041 behat: Adding hook
...
Stops execution when the output contains
an exception, a debugging message or a PHP
debug message.
2013-05-03 10:05:08 +08:00
Tim Hunt
5f85073525
MDL-39445 get_plugin_list clean_param use is slow
...
get_plugin_list was calling clean_param($pluginname, PARAM_PLUGIN) a
lot (600+ times per page), and that is much slower than you would guess.
A specific function for this case, (which we then also use from
clean_param) is a performance win.
2013-05-02 16:20:24 +01:00
sam marshall
0d9e5992b3
MDL-39454 Accesslib: is_siteadmin is a bit slow
2013-05-02 10:42:28 +01:00
Eloy Lafuente (stronk7)
bee592add8
Merge branch 'wip-MDL-39216-m25' of git://github.com/samhemelryk/moodle
2013-05-01 02:29:36 +02:00
Sam Hemelryk
a697000b53
MDL-39216 url: included test for empty string param
2013-05-01 12:27:36 +12:00
Damyon Wiese
34e46d7556
Merge branch 'mdl-39335' of git://github.com/vostreltsov/moodle
2013-04-30 15:51:12 +08:00
Dan Poltawski
e0b3f5f235
Merge branch 'w17_MDL-39077_m25_sizes' of git://github.com/skodak/moodle
2013-04-30 08:24:31 +01:00
Sam Hemelryk
45d9752205
MDL-39216 url: updated tests to show desired outcome
2013-04-30 11:09:47 +12:00
Sam Hemelryk
616396a6cf
MDL-39216 url: new moodle_url tests for valueless params
2013-04-30 11:09:47 +12:00
Petr Škoda
f869cb2326
MDL-39077 add more unit tests for get_max_upload_sizes()
2013-04-27 16:08:15 +02:00
Tim Hunt
328ac3069b
MDL-39378 Improve s() performance.
...
These changes give about a 10% speed-up in this function. The significant changes are:
1. Simplify the if logic to remove unnecssary cases.
2. Dont pass default argument values to htmlspecialchars, just using the
defaults is faster.
3. I can confirm that /i regex is faster than the equivalent regex without the i.
I also added more unit tests to test the edge cases.
2013-04-26 18:49:25 +01:00
Tim Hunt
0c6f9e759b
MDL-39378 s(): fix bad hex regex
2013-04-26 18:38:29 +01:00
Valeriy Streltsov
1977123ea5
MDL-39335: add an ord() unicode analog to textlib.
2013-04-26 12:12:03 +00:00
Eloy Lafuente (stronk7)
274511f0cb
Merge branch 'MDL-35364' of git://github.com/timhunt/moodle
2013-04-24 23:35:46 +02:00
Eloy Lafuente (stronk7)
bdeda339b4
Merge branch 'wip-MDL-38441-m25' of git://github.com/samhemelryk/moodle
2013-04-23 23:41:47 +02:00
Tim Hunt
4a7cc24808
MDL-35364 shorten text: don't return invalid HTML.
...
I also broke the unit tests into more, smaller, named tests, so that
when things start failing, more tests are run, and it is clearer what
the problem is.
In a couple of cases, I adjusted the $ideal lenght in the test. A
careful counting of the characters in the test input (added as comments)
suggests that the new values make for better tests.
2013-04-22 19:21:40 +01:00
David Mudrák
badf464792
MDL-39148 Non-installed plugins cannot be uninstalled
...
If the plugin has been only deployed to the disk without installing into
the database, do not allow going through the uninstallation procedure.
Not only it does not have much sense. But it can also lead to some
tricky situation due to dependencies. Better to block it and wait till
the plugin is either fully installed or removed from the disk.
2013-04-19 11:24:43 +02:00
Sam Hemelryk
0678958015
MDL-38411 css: new unit tests to cover chunking
2013-04-19 10:09:45 +12:00
Dan Poltawski
c6101ef441
Merge branch 'MDL-39087-plugins-uninstall' of git://github.com/mudrd8mz/moodle
2013-04-17 12:09:20 +01:00