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

Add removeTechControlsListener call to add method #2511

Closed
wants to merge 4 commits into from

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Aug 24, 2015

Fixes #2504.

@gkatsev
Copy link
Member Author

gkatsev commented Aug 24, 2015

This fixes the immediate issue. Looking into whether we can simplify when addTechControlsListener gets called.

@pam
Copy link

pam commented Aug 24, 2015

Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 97f9ddbbfe978d47c6a109b05fbf0de82d369fe1
Build details: https://travis-ci.org/pam/video.js/builds/77048645

(Please note that this is a fully automated comment.)

1 similar comment
@pam
Copy link

pam commented Aug 24, 2015

Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 97f9ddbbfe978d47c6a109b05fbf0de82d369fe1
Build details: https://travis-ci.org/pam/video.js/builds/77048645

(Please note that this is a fully automated comment.)

@heff
Copy link
Member

heff commented Aug 24, 2015

Apparently re-running savage tests in travis doesn't work.

@pam retry

@pam
Copy link

pam commented Aug 24, 2015

Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: c97a5259b9fadf0231ee3f0fd8b3d89c64ce0464
Build details: https://travis-ci.org/pam/video.js/builds/77060173

(Please note that this is a fully automated comment.)

@gkatsev
Copy link
Member Author

gkatsev commented Aug 24, 2015

Failed with vjs_getProperty.

@pam
Copy link

pam commented Aug 24, 2015

Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: b80e2b8
Build details: https://travis-ci.org/pam/video.js/builds/77061751

(Please note that this is a fully automated comment.)

@gkatsev
Copy link
Member Author

gkatsev commented Aug 24, 2015

@pam retry

@pam
Copy link

pam commented Aug 24, 2015

Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: b80e2b8
Build details: https://travis-ci.org/pam/video.js/builds/77068616

(Please note that this is a fully automated comment.)

@@ -1939,7 +1942,6 @@ class Player extends Component {
if (this.usingNativeControls_ !== bool) {
Copy link
Member

Choose a reason for hiding this comment

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

Personally, I would invert this conditional and return early to get rid of a level of nesting in this function. Not worth blocking this PR, though.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, and you could do the same with the bool !== undefined above this.

@dmlap
Copy link
Member

dmlap commented Aug 25, 2015

Do we have sufficient test coverage for this already?

@gkatsev
Copy link
Member Author

gkatsev commented Aug 25, 2015

I'll take a look at what tests we have for this.

@gkatsev
Copy link
Member Author

gkatsev commented Aug 25, 2015

I added a test.

@pam
Copy link

pam commented Aug 25, 2015

Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: c930090
Build details: https://travis-ci.org/pam/video.js/builds/77201275

(Please note that this is a fully automated comment.)

player.controls(false);

player.controls(true);
equal(listeners, 1, 'addTechControlsListeners should have gotten called once')
Copy link
Member

Choose a reason for hiding this comment

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

semicolon

@pam
Copy link

pam commented Aug 25, 2015

Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 8276fd9
Build details: https://travis-ci.org/pam/video.js/builds/77202993

(Please note that this is a fully automated comment.)

@gkatsev
Copy link
Member Author

gkatsev commented Aug 25, 2015

@pam retry

@pam
Copy link

pam commented Aug 25, 2015

Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 8276fd9
Build details: https://travis-ci.org/pam/video.js/builds/77213284

(Please note that this is a fully automated comment.)

@gkatsev
Copy link
Member Author

gkatsev commented Aug 25, 2015

The errors are the vjs_getProperty issue which are coming from... somewhere... and handled elsewhere (#2515 or #2517).

@heff
Copy link
Member

heff commented Aug 25, 2015

Assuming we've tested this on the platforms this was reported on, lgtm.

@gkatsev
Copy link
Member Author

gkatsev commented Aug 25, 2015

I've tested it locally on ipads, android native browser, chrome, firefox, safari

@gkatsev gkatsev closed this in de39cfc Aug 25, 2015
@gkatsev gkatsev deleted the tech-listeners branch August 25, 2015 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants