    <video width="300" height="300" muted loop controls></video>
</div>

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
const BLUE = "rgb(0, 0, 255)";
const GREEN = "rgb(0, 128, 0)";

function assert_buffering_state(buffering) {
    if (buffering)
        assert_equals(getComputedStyle(subject).backgroundColor, BLUE);
    else
        assert_not_equals(getComputedStyle(subject).backgroundColor, BLUE);
}

function assert_stalled_state(stalle