Skip to content

Commit

Permalink
updated failing test with proper index
Browse files Browse the repository at this point in the history
but is it 'right'?
  • Loading branch information
erikyuzwa committed Sep 3, 2015
1 parent 0527665 commit d763d0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/unit/player.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ test('should load a media controller', function(){
]
});

ok(player.el().children[0].className.indexOf('vjs-tech') !== -1, 'media controller loaded');
var it = player.el().children;
//ok(player.el().children[0].className.indexOf('vjs-tech') !== -1, 'media controller loaded');
ok(player.el().children[it.length-1].className.indexOf('vjs-tech') !== -1, 'media controller loaded');

player.dispose();
});
Expand Down

0 comments on commit d763d0e

Please sign in to comment.