You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/devextreme/testing/tests/DevExpress.ui.events/events.utils.nodesDisposing.tests.js
+14-9Lines changed: 14 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ QUnit.testStart(function() {
16
16
17
17
QUnit.module('event nodes disposing');
18
18
19
-
QUnit.test('should not leave extra handlers in elementDataMap when using subscribeNodesDisposing and unsubscribeNodesDisposing for click on document',function(assert){
19
+
QUnit.test('should clean elementDataMap when using subscribeNodesDisposing and unsubscribeNodesDisposing for click',function(assert){
`HandleObjects should be added for "${removeEvent}" event after subscribe. HandleObjects count: ${afterSubscribeHandleObjectsCount};`
47
+
);
44
48
45
-
assert.ok(
46
-
-1>=0,
47
-
`HandleObjects should be removed. For ${removeEvent} event, after HandleObjects subscribe count: ${afterSubscribeHandleObjectsCount}; Final HandleObjects count: ${finalHandleObjectsCount};`
49
+
assert.equal(
50
+
afterUnsubscribeHandleObjectsCount,
51
+
0,
52
+
`HandleObjects should be removed for "${removeEvent}" event after unsubscribe. HandleObjects count: ${afterUnsubscribeHandleObjectsCount};`
0 commit comments