<!DOCTYPE html>
<title>TextTrack's addCue and removeCue</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test(function(t) {
    var video = document.createElement("video");
    var trackElement = document.createElement("track");

    trackElement.onload = t.step_func_done(function() {
        var cues = trackElement.track.cues;
        // Test cues loaded from the file.
        assert_equals(cues.length, 4);
        assert_equal