Generic Notes
These testing instructions should be carried out twice (once with jsrev = -1, once without) to confirm that the correct versions of JS are used and work as expected.
Tip: Open your browser's developer toolkit, open the 'Network' activity tab, and restrict to 'Scripts'.
Note: You may find that the script you're looking for is included with a number of other scripts - this is because of our combo loading.
You can turn off comboloading to make it easier to check the relevant script by setting
$CFG->yuicomboloading = false;
|
, but you should check that functionality works
with combo loading enabled.
To test the minified code:
Required settings:
// Ensure you aren't overriding $CFG->jsrev
|
$CFG->debug = 0;
|
Notes
Check that the minified version of this module is loaded.
It will have -min.js in the filename but please ensure content is also be minified
and to test the non-minified code:
Required settings:
$CFG->jsrev = -1;
|
$CFG->debug = (E_ALL | E_STRICT);
|
Notes
Check that the non-minified version of this module is loaded.
It will have -debug.js in the filename and the file content should not be minified.
Module-specific test instructions
Try out dialogues around moodle which use moodle-core-notification including:
- activity chooser
- new help tooltips
When debugging settings are enabled, non-minified will be used
Without them, a minified version is used - please confirm that the file actually is minified and isn't just called -min.js
Note: moodle-core-notification may be called with a bunch of other stuff in a combo load but it is there somewhere.