Test loop behavior when seeking to the end of the media resource

http://whatwg.org/html#playing-the-media-resource

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24955