https://github.com/web-platform-tests/wpt
Raw File
Tip revision: b007364596ffd5eba7f7754c44220253bbbf113d authored by Philip Jägenstedt on 11 May 2017, 11:30:46 UTC
Add a test for fully exiting fullscreen due to navigation
Tip revision: b007364
RTCPeerConnection-iceGatheringState.html
<!doctype html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>RTCPeerConnection ICEGatheringState tests</title>
</head>
<body>
  <!-- These files are in place when executing on W3C. -->
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
  <script type="text/javascript">
  async_test(function(test) {
    var pc = new RTCPeerConnection(null);

    pc.onicegatheringstatechange = test.step_func(function(event) {
      if (pc.iceGatheringState === 'complete') {
        test.done();
      }
    });
    pc.createOffer({offerToReceiveAudio: 1})
    .then(offer => pc.setLocalDescription(offer))
    .catch(test.step_func(function(e) {
      assert_unreached('Error ' + e.name + ': ' + e.message);
    }));
  }, 'Tests that the ICE gathering state ends up as "completed" after applying a local offer.');
</script>

</body>
</html>
back to top