Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #299 from arv/fix-audio-test
Browse files Browse the repository at this point in the history
Fix tests for HTMLAudioElement
  • Loading branch information
arv committed Nov 5, 2013
2 parents 2120081 + cbfd333 commit 45c3ae4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/js/HTMLAudioElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ suite('HTMLAudioElement', function() {
test('Audio arguments', function() {
var audio = new Audio();
assert.isFalse(audio.hasAttribute('src'));
assert.equal(audio.getAttribute('preload', 'auto'));
assert.equal(audio.getAttribute('preload'), 'auto');

var src = 'foo.wav';
var audio = new Audio(src);
assert.equal(audio.getAttribute('src', 'foo.wav'));
assert.equal(audio.getAttribute('src'), 'foo.wav');
});

test('Audio called as function', function() {
Expand All @@ -44,7 +44,7 @@ suite('HTMLAudioElement', function() {
div.appendChild(audio);

assert.equal(div.firstChild, audio);
assert.equal('<div><audio></div>', div.outerHTML);
assert.equal('<div><audio preload="auto"></audio></div>', div.outerHTML);
});

});

0 comments on commit 45c3ae4

Please sign in to comment.