Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Fixing audio without controls rule and adding a test for it. #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yurypetrov
Copy link

Fixes #25.

@yurypetrov
Copy link
Author

@alice Please take a look.

var fixture = document.getElementById('qunit-fixture');
fixture.innerHTML = "<audio src=\"http://developer.mozilla.org/@api/deki/files/2926/=AudioTest_(1).ogg\" autoplay></audio>";
var audio = document.querySelector('audio');
audio.addEventListener('canplay', function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

As discussed, we need to come up with a way to block this test finishing until this assertion has run. Check out the QUnit doc: http://api.qunitjs.com/

@ckundo
Copy link
Collaborator

ckundo commented Jul 24, 2015

@yurypetrov @alice did you find a way to properly test this?

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

Successfully merging this pull request may close these issues.

Also validate scope if it's a DOM node
3 participants