summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/chrome/keyboard_navigation_mixin_tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/tests/chrome/keyboard_navigation_mixin_tests.js')
-rw-r--r--addons/web/static/tests/chrome/keyboard_navigation_mixin_tests.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/web/static/tests/chrome/keyboard_navigation_mixin_tests.js b/addons/web/static/tests/chrome/keyboard_navigation_mixin_tests.js
index da417deddf5..dcf1c23ce39 100644
--- a/addons/web/static/tests/chrome/keyboard_navigation_mixin_tests.js
+++ b/addons/web/static/tests/chrome/keyboard_navigation_mixin_tests.js
@@ -15,11 +15,16 @@ QUnit.module('KeyboardNavigationMixin', function () {
KeyboardNavigationMixin.init.call(this);
},
start: function () {
+ KeyboardNavigationMixin.start.call(this);
var $button = $('<button>').text('Click Me!').attr('accesskey', 'o');
// we need to define the accesskey because it will not be assigned on invisible buttons
this.$el.append($button);
return this._super.apply(this, arguments);
},
+ destroy: function () {
+ KeyboardNavigationMixin.destroy.call(this);
+ return this._super(...arguments);
+ },
});
var parent = testUtils.createParent({});
var w = new KeyboardWidget(parent);
@@ -51,11 +56,16 @@ QUnit.module('KeyboardNavigationMixin', function () {
KeyboardNavigationMixin.init.call(this);
},
start: function () {
+ KeyboardNavigationMixin.start.call(this);
$button = $('<button>').text('Click Me!').attr('accesskey', 'o');
// we need to define the accesskey because it will not be assigned on invisible buttons
this.$el.append($button);
return this._super.apply(this, arguments);
},
+ destroy: function () {
+ KeyboardNavigationMixin.destroy.call(this);
+ return this._super(...arguments);
+ },
});
var parent = testUtils.createParent({});
var w = new KeyboardWidget(parent);