414389a8 by Gary Katsevman

PR comment updates

1 parent 358ec163
......@@ -741,12 +741,13 @@ test('when outstanding XHRs are cancelled, they get aborted properly', function(
ok(requests[1].aborted, 'XHR aborted');
strictEqual(requests.length, 3, 'opened new XHR');
notEqual(player.hls.segmentXhr_.url, requests[1].url, 'the segment xhr is nulled out');
notEqual(player.hls.segmentXhr_.url, requests[1].url, 'a new segment is request that is not the aborted one');
strictEqual(readystatechanges, 0, 'onreadystatechange was not called');
});
test('segmentXhr is properly nulled out when dispose is called', function() {
var readystatechanges = 0,
var
readystatechanges = 0,
oldDispose = videojs.Flash.prototype.dispose;
videojs.Flash.prototype.dispose = function() {};
......@@ -756,15 +757,6 @@ test('segmentXhr is properly nulled out when dispose is called', function() {
});
openMediaSource(player);
standardXHRResponse(requests[0]);
player.hls.media = {
segments: [{
uri: '0.ts',
duration: 10
}, {
uri: '1.ts',
duration: 10
}]
};
// trigger a segment download request
player.trigger('timeupdate');
......@@ -1200,7 +1192,8 @@ test('disposes the playlist loader', function() {
});
test('remove event handlers on dispose', function() {
var player,
var
player,
handlers = [],
timeupdateOff = 0,
waitingOff = 0,
......