 {
        assert_equals(track.track.mode, "disabled", "Text track selection hasn't started yet.");
        track.onerror = t.step_func_done(trackError);
    }

    function trackError() {
        assert_equals(track.track.mode, "showing", "Text track selection modified track's mode.");
        t.done();
    }
});

</script>
