File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
packages/devextreme/testing/tests/DevExpress.ui.events Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff 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
573577QUnit . 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-
600598QUnit . test ( 'should not leak memory when subscribing on document and clicking elements (T1307313)' , function ( assert ) {
601599 const done = assert . async ( ) ;
602600 const clickEventName = 'dxclick' ;
You can’t perform that action at this time.
0 commit comments