 { direction: 'recvonly' });
    const offer = await pc1.createOffer();
    await pc2.setRemoteDescription(offer);
    await pc2.setRemoteDescription(offer);
    await pc2.setRemoteDescription({type: 'rollback'});
    await pc2.setRemoteDescription(offer);
  }, 'sRD does not cause ICE gathering state changes');

  promise_test(async t => {
    const pc1 = new RTCPeerConnection();
    t.add_cleanup(() => pc1.close());
    const pc2 = new RTCPeerConnection();
    t.add_cleanup(() => pc2.close());
    pc1.addT