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

Commit

Permalink
Fix tests for HTMLAudioElement
Browse files Browse the repository at this point in the history
  • Loading branch information
arv committed Nov 5, 2013
1 parent 2120081 commit cbfd333
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 cbfd333

Please sign in to comment.