Skip to content

Commit 7be21e1

Browse files
fix test for click subscription in events_engine (T1307313)"
This reverts commit d0d18c3.
1 parent 62e44f1 commit 7be21e1

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

packages/devextreme/testing/tests/DevExpress.ui.events/eventsEngine.tests.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,11 @@ QUnit.test('removeEventListener should not be called if native handler is not ex
568568
delListener.restore();
569569
});
570570

571-
QUnit.module('Memory');
571+
QUnit.module('Memory bugs', {
572+
afterEach: function() {
573+
eventsEngine.off(document);
574+
}
575+
});
572576

573577
QUnit.test('removing subscriptions should remove data from elementDataMap', function(assert) {
574578
const div = document.createElement('div');
@@ -591,12 +595,6 @@ QUnit.test('removing subscriptions should not remove data from elementDataMap if
591595
assert.equal(eventsEngine.elementDataMap.has(div), hasData);
592596
});
593597

594-
QUnit.module('Memory bugs', {
595-
afterEach: function() {
596-
eventsEngine.off(document);
597-
}
598-
});
599-
600598
QUnit.test('should not leak memory when subscribing on document and clicking elements (T1307313)', function(assert) {
601599
const done = assert.async();
602600
const clickEventName = 'dxclick';

0 commit comments

Comments
 (0)