
    assert_equals(pc.iceGatheringState, 'new');
  }, 'Initial iceGatheringState should be new');

  async_test(t => {
    const pc = new RTCPeerConnection();

    t.add_cleanup(() => pc.close());

    let reachedGathering = false;
    const onIceGatheringStateChange = t.step_func(() => {
      const { iceGatheringState } = pc;

      if(iceGatheringState === 'gathering') {
        reachedGathering = true;
      } else if(iceGatheringState === 'complete') {
        assert_true(reachedGathering, 'iceGatherin