tests/integration/scenarios/dash_stream-events.js
/**
   * Check that a received stream event is the same one that the descriptive
   * object exported jointly with the content information.
   * @param {Object} receivedEvent
   * @param {Object} wantedEvent
   */
Check that a received stream event is the same one that the descriptive
object exported jointly with the content information.
@param {Object} receivedEvent
@param {Object} wantedEvent
Check that a received stream event is the same one that the descriptive object exported jointly with the content information . @param { Object } receivedEvent @param { Object } wantedEvent
function checkEvent(receivedEvent, wantedEvent) {
    expect(receivedEvent.start).to.equal(wantedEvent.start);
    expect(receivedEvent.end).to.equal(wantedEvent.end);
    expect(receivedEvent.data.type).to.equal(wantedEvent.type);
    expect(receivedEvent.data.value.schemeIdUri)
      .to.equal(wantedEvent.schemeIdUri);
    expect(receivedEvent.data.value.timescale)
      .to.equal(wantedEvent.timescale);
    const elt = receivedEvent.data.value.element;
    expect(elt).to.be.instanceOf(Element);
    expect(elt.outerHTML).to.equal(wantedEvent.elt);
  }
function checkEvent ( receivedEvent , wantedEvent ) { expect ( receivedEvent . start ) . to . equal ( wantedEvent . start ) ; expect ( receivedEvent . end ) . to . equal ( wantedEvent . end ) ; expect ( receivedEvent . data . type ) . to . equal ( wantedEvent . type ) ; expect ( receivedEvent . data . value . schemeIdUri ) . to . equal ( wantedEvent . schemeIdUri ) ; expect ( receivedEvent . data . value . timescale ) . to . equal ( wantedEvent . timescale ) ; const elt = receivedEvent . data . value . element ; expect ( elt ) . to . be . instanceOf ( Element ) ; expect ( elt . outerHTML ) . to . equal ( wantedEvent . elt ) ; }
Check that a received stream event is the same one that the descriptive
 object exported jointly with the content information.
Check that a received stream event is the same one that the descriptive object exported jointly with the content information .