Skip to content
Snippets Groups Projects
Commit cf3ea892 authored by Valera Rozuvan's avatar Valera Rozuvan
Browse files

Rebased. Updated Jasmine describe messages to make them more clearer.

parent e930b96b
No related branches found
Tags release-2021-02-03-12.16
No related merge requests found
......@@ -28,7 +28,7 @@
spyOn(player, 'callStateChangeCallback').andCallThrough();
});
describe('click', function () {
describe('[click]', function () {
describe('when player is paused', function () {
beforeEach(function () {
spyOn(player.video, 'play').andCallThrough();
......@@ -61,7 +61,7 @@
});
});
describe('when player is playing', function () {
describe('[player is playing]', function () {
beforeEach(function () {
spyOn(player.video, 'pause').andCallThrough();
player.playerState = STATUS.PLAYING;
......@@ -94,7 +94,7 @@
});
});
describe('play', function () {
describe('[play]', function () {
beforeEach(function () {
spyOn(player.video, 'play').andCallThrough();
player.playerState = STATUS.PAUSED;
......@@ -126,7 +126,7 @@
});
});
describe('pause', function () {
describe('[pause]', function () {
beforeEach(function () {
spyOn(player.video, 'pause').andCallThrough();
player.playerState = STATUS.UNSTARTED;
......@@ -161,7 +161,7 @@
});
});
describe('canplay', function () {
describe('[canplay]', function () {
beforeEach(function () {
waitsFor(function () {
return player.getPlayerState() !== STATUS.UNSTARTED;
......@@ -193,7 +193,7 @@
});
});
describe('ended', function () {
describe('[ended]', function () {
beforeEach(function () {
waitsFor(function () {
return player.getPlayerState() !== STATUS.UNSTARTED;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment