]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
dried out code, removed baseplayerfrom tests, uses empty audio element instead. t481
authorChristopher De Cairos <chris.decairos@gmail.com>
Tue, 31 May 2011 21:22:57 +0000 (17:22 -0400)
committerChristopher De Cairos <chris.decairos@gmail.com>
Tue, 31 May 2011 21:22:57 +0000 (17:22 -0400)
popcorn.js
test/index.html
test/popcorn.unit.js

index 4661b1ee161e688e5f38d98ce33935fe9865984d..5198e7c14dc0bda2dd35795932be4134646b75c1 100644 (file)
       }
 
       if ( !( "end" in options ) ) {
-        var duration = this.duration();
-        options.end = duration ? duration : Number.MAX_VALUE;
+        options.end = this.duration() || Number.MAX_VALUE;
       }
 
       //  If a _setup was declared, then call it before
index 6fc99477f180a64cd1005a11e13b41e4698f7432..3dde4c0fb889957cf8b17311a4788aedc4ef8b87 100644 (file)
@@ -15,7 +15,6 @@
   <script src="popcorn.unit.setup.js"></script>
   
   <script src="../popcorn.js"></script>
-  <script src="../players/baseplayer/popcorn.baseplayer.js"></script>
   <script src="popcorn.unit.js"></script>
 </head>
 <body>
index e6a5fda1d94c7ea9fc74f0c1aa10766e9be2f105..f36aedde8b10667429278b5a5d2f9286ab5b7dfa 100644 (file)
@@ -1514,7 +1514,7 @@ test("Defaulting Empty End Values", function() {
     }
   });
   
-  var popped = Popcorn( Popcorn.baseplayer() )
+  var popped = Popcorn( document.createElement( "audio" ) )
   .play() 
   .testdefault({
     start: 0, // seconds
@@ -1522,7 +1522,7 @@ test("Defaulting Empty End Values", function() {
     mediaid: "13607892"
   });
 
-  var popped2 = Popcorn(document.createElement("video"))
+  var popped2 = Popcorn( document.createElement( "video" ) )
   .play()
   .testdefault({
     start: 0, // seconds