Skip to content

Instantly share code, notes, and snippets.

@futuraprime
Created March 16, 2012 22:07
Show Gist options
  • Save futuraprime/2053131 to your computer and use it in GitHub Desktop.
Save futuraprime/2053131 to your computer and use it in GitHub Desktop.
Video test
it("should change its media when prompted", function() {
var c = new C(config).placeAt(t);
c.prepareData();
c.startup();
c.set('media', feed_media);
//expect(c.media).toEqual(feed_media);
c._setupPlayer();
debugger;
expect(t.querySelector('video').getAttribute('src')).toEqual(feed_media.url);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment