Skip to content
Permalink
Browse files
[CB-3553] added a check for media status constants
- new jasmine test added
  • Loading branch information
ldeluca authored and filmaj committed Jun 20, 2013
1 parent e31b38e commit 95d4bca5b18fd01bd5a6e2e1578284a773df1d9e
Showing 1 changed file with 9 additions and 0 deletions.
@@ -33,6 +33,15 @@ describe('Media', function () {
expect(media1._position).toBeDefined();
media1.release();
});

it("should define constants for Media status", function() {
expect(Media).toBeDefined();
expect(Media.MEDIA_NONE).toBe(0);
expect(Media.MEDIA_STARTING).toBe(1);
expect(Media.MEDIA_RUNNING).toBe(2);
expect(Media.MEDIA_PAUSED).toBe(3);
expect(Media.MEDIA_STOPPED).toBe(4);
});

it("should define constants for Media errors", function() {
expect(MediaError).toBeDefined();

0 comments on commit 95d4bca

Please sign in to comment.