From cbfd3332aa904603c3e238313c2b0fe5446b1dbc Mon Sep 17 00:00:00 2001 From: Erik Arvidsson Date: Tue, 5 Nov 2013 10:23:52 -0500 Subject: [PATCH] Fix tests for HTMLAudioElement --- test/js/HTMLAudioElement.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/js/HTMLAudioElement.js b/test/js/HTMLAudioElement.js index 8716329..64f0301 100644 --- a/test/js/HTMLAudioElement.js +++ b/test/js/HTMLAudioElement.js @@ -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() { @@ -44,7 +44,7 @@ suite('HTMLAudioElement', function() { div.appendChild(audio); assert.equal(div.firstChild, audio); - assert.equal('
', div.outerHTML); + assert.equal('
', div.outerHTML); }); });