Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Side by Side Diff: LayoutTests/media/track/track-remove-track-expected.txt

Issue 177243018: Prevent 'removetrack' events from firing when all inband text tracks are removed. (Closed) Base URL: svn://
Patch Set: Fix expectations Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
1 Tests that the 'removetrack' event is fired when a TextTrack is removed. 1 This is a testharness.js-based test.
2 2 PASS Tests that the 'removetrack' event is fired when an out-of-band TextTrack i s removed.
3 ** Test a TextTrack created for a <track> element. 3 PASS Tests that the 'removetrack' event is NOT fired for inband TextTrack on a f ailed load.
4 RUN(trackElement = document.createElement('track')) 4 Harness: the test ran to completion.
5 RUN(video.appendChild(trackElement))
6 RUN(trackElement.src = 'captions-webvtt/tc004-webvtt-file.vtt')
7 RUN(trackElement.track.mode = 'hidden')
8 EXPECTED (video.textTracks.length == '1') OK
9 EVENT(removetrack)
10 EXPECTED ( == '[object TextTrackList]') OK
11 EXPECTED (event instanceof window.TrackEvent == 'true') OK
12 EXPECTED (event.track == '[object TextTrack]') OK

Powered by Google App Engine
This is Rietveld 408576698