]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Fixes outerHTML issue
authorRick Waldron <waldron.rick@gmail.com>
Thu, 22 Sep 2011 18:37:40 +0000 (14:37 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Thu, 22 Sep 2011 18:37:40 +0000 (14:37 -0400)
test/popcorn.unit.js

index 55a5e9a4f7cb638b58125942160e68b53f517dec..5a2ca4bff62ddc88cc2f9041a8d860815fa22817 100644 (file)
@@ -649,12 +649,16 @@ test( "play(n)/pause(n) custom stop()", function() {
     return this.pause( 0 );
   };
 
-  var outerHTML = document.getElementById("video").outerHTML,
+  var outerHTML = [
+                       "<video id='video-fixture' preload='auto' controls='' style='display:;width:300px' tabindex='0'>",
+                       document.getElementById( "video" ).innerHTML,
+                       "</video>"
+                       ].join( "\n" ),
       count = 0,
       expects = 2,
       $pop;
 
-  document.getElementById("qunit-fixture").innerHTML = outerHTML.replace('id="video"', 'id="video-fixture"');
+  document.getElementById("qunit-fixture").innerHTML = outerHTML;
 
   $pop = Popcorn( "#video-fixture" );