Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pause player #50

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Pause player #50

wants to merge 7 commits into from

Conversation

jubar
Copy link
Contributor

@jubar jubar commented Mar 6, 2017

Allow to pause and resume test execution.

@jubar jubar added the feature label Mar 6, 2017
addon/index.js Outdated
@@ -44,6 +44,8 @@ export function testStart(context) {
}

export function testEnd() {
// After all the animations finished, we call destroy method in order to clean up elements and events
player().destroy();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test if player() is null first

addon/player.js Outdated
@@ -52,11 +52,54 @@ class Player extends BasePlayer {
this.moduleName = moduleName;
this.testName = testName;
this.success = true;
this.pausePromise = null;
QUnit.config.testTimeout = undefined;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep QUnit configurarion on the vendor file only, so the code is independent of the testing franework

addon/player.js Outdated
}

// Singleton instance of Player
let current = null;
var tsCurrentPlayer = null;
Copy link
Member

@san650 san650 Mar 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variables inside ES6 modules are private to the module so it's not necessary to give it a globally unique name, just a module unique name, I guess current or currentPlayer is enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants