Skip to content

Commit

Permalink
@chemoish fix player tests
Browse files Browse the repository at this point in the history
- `loadTech_` (f7466af)
- `TestHelpers.makePlayer` (f298d18)
  • Loading branch information
Carey Hinoki committed Oct 5, 2015
1 parent aba9e40 commit 4dc3e77
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/unit/player.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ test('should get current source from source tag', function(){
fixture.innerHTML += html;

var tag = document.getElementById('example_1');
var player = PlayerTest.makePlayer({}, tag);
var player = TestHelpers.makePlayer({}, tag);

ok(player.currentSource().src === 'http://google.com');
ok(player.currentSource().type === 'video/mp4');
Expand All @@ -162,7 +162,7 @@ test('should get current sources from source tag', function(){
fixture.innerHTML += html;

var tag = document.getElementById('example_1');
var player = PlayerTest.makePlayer({}, tag);
var player = TestHelpers.makePlayer({}, tag);

ok(player.currentSources()[0].src === 'http://google.com');
ok(player.currentSources()[0].type === 'video/mp4');
Expand All @@ -185,9 +185,9 @@ test('should get current source from src set', function(){
fixture.innerHTML += html;

var tag = document.getElementById('example_1');
var player = PlayerTest.makePlayer({}, tag);
var player = TestHelpers.makePlayer({}, tag);

player.loadTech('Html5');
player.loadTech_('Html5');

// check for matching undefined src
ok(player.currentSource().src === player.currentSrc());
Expand Down Expand Up @@ -221,9 +221,9 @@ test('should get current sources from src set', function(){
fixture.innerHTML += html;

var tag = document.getElementById('example_1');
var player = PlayerTest.makePlayer({}, tag);
var player = TestHelpers.makePlayer({}, tag);

player.loadTech('Html5');
player.loadTech_('Html5');

// check for matching undefined src
ok(player.currentSources()[0].src === player.currentSrc());
Expand Down

0 comments on commit 4dc3e77

Please sign in to comment.