  var video = document.createElement('video');
    var t = video.addTextTrack('subtitles');
    document.body.appendChild(video);
    var cues = t.cues;
    var c = new VTTCue(0, 1, 'text1');
    c.id = 'a\u0000b';
    t.addCue(c);
    assert_equals(cues.getCueById("a\u0000b"), c, '"a\\u0000b"');
    assert_equals(cues.getCueById("a"), null, '"a"');
}, document.title+ ', id a\\u0000b');
</script>
