1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-27 11:22:06 +02:00

check how many events were triggered

This commit is contained in:
Gary Katsevman 2013-02-08 13:35:35 -05:00
parent b8b23d00de
commit 4cefbf6bac

View File

@ -156,6 +156,7 @@ test('Plugins should not get events after stopImmediatePropagation is called', f
player['testerPlugin']({});
deepEqual(order, expectedOrder.slice(0, order.length), "plugins should receive events in order of initialization, until stopImmediatePropagation");
player.dispose();
})
equal(order.length, 1, "only one event listener should have triggered");
player.dispose();
});