MDL-82373 core: Make CollapsibleRegion more tolerant to behat
This commit is contained in:
@@ -134,6 +134,10 @@ M.util.CollapsibleRegion = function(Y, id, userpref, strtooltip) {
|
||||
from: {height:height}
|
||||
});
|
||||
|
||||
animation.on('start', () => M.util.js_pending('CollapsibleRegion'));
|
||||
animation.on('resume', () => M.util.js_pending('CollapsibleRegion'));
|
||||
animation.on('pause', () => M.util.js_complete('CollapsibleRegion'));
|
||||
|
||||
// Handler for the animation finishing.
|
||||
animation.on('end', function() {
|
||||
this.div.toggleClass('collapsed');
|
||||
@@ -148,6 +152,8 @@ M.util.CollapsibleRegion = function(Y, id, userpref, strtooltip) {
|
||||
} else {
|
||||
this.icon.set('src', M.util.image_url('t/expanded', 'moodle'));
|
||||
}
|
||||
|
||||
M.util.js_complete('CollapsibleRegion');
|
||||
}, this);
|
||||
|
||||
// Hook up the event handler.
|
||||
|
||||
Reference in New Issue
Block a user