);
    for (var track of tracks) {
      track.onload = t.step_func(function() {
        assert_equals(event.target.readyState, HTMLTrackElement.LOADED);
        assert_equals(event.target.id, "default");
        assert_true(event.target.default);
        // End the test after a brief pause so we allow other tracks to load if they will.
        if (timer)
          clearTimeout(timer);
        timer = t.step_timeout(t.step_func_done(), 200);
      });
    }
  });
  </script>
</video>
