plugins: add tests for video plugin

Test ogv, webm and mp4 urls
This commit is contained in:
David Cormier 2015-01-03 00:01:46 -05:00 committed by Lorenz Hübschle-Schneider
parent d8c4ba78c1
commit 0165e5e320

View file

@ -71,6 +71,16 @@ describe('filter', function() {
plugins); plugins);
})); }));
it('should recognize html5 videos', inject(function(plugins) {
expectTheseMessagesToContain([
'http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4',
'http://www.quirksmode.org/html5/videos/big_buck_bunny.webm',
'http://www.quirksmode.org/html5/videos/big_buck_bunny.ogv',
],
'video',
plugins);
}));
it('should recognize images', inject(function(plugins) { it('should recognize images', inject(function(plugins) {
expectTheseMessagesToContain([ expectTheseMessagesToContain([
'http://i.imgur.com/BTNIDBR.gif', 'http://i.imgur.com/BTNIDBR.gif',