Media Controls: Use events to update controls for closed captions.
This is using addtrack, removetrack and change events on the TextTrackList exposed
on the media element to be notified and update the closed captions button. Because
the events are asynchronous, some tests have to be modified to be asynchronous.
They have been moved to media/controls/ too.
There is one hook that was added in order to notify the controls that an
HTMLTrackElement failed to load. There is no clear way to figure that out otherwise.
An HTML issue has been opened:
https://github.com/whatwg/html/issues/2121
BUG=
662761
Committed:
https://crrev.com/a069837e9fe584243f357ca535ca0bebd0b7de85
Cr-Commit-Position: refs/heads/master@{#436321}