]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#227] Fix bad unit tests for Popcorn Events: Real
authorrwldrn <waldron.rick@gmail.com>
Wed, 15 Dec 2010 22:03:26 +0000 (17:03 -0500)
committerrwldrn <waldron.rick@gmail.com>
Wed, 15 Dec 2010 22:03:26 +0000 (17:03 -0500)
test/popcorn.unit.js

index 7716ba324a0ae7d6d4bdfe4cb63673d1ef8ce652..96ff54a5b91237d0a42b6eff3efbf0fec6bca17c 100644 (file)
@@ -267,7 +267,7 @@ test("Real", function () {
       completed = [];                              
   
   
-  var expects = 10, 
+  var expects = 5, 
       count = 0;
 
 
@@ -278,7 +278,7 @@ test("Real", function () {
   stop();  
   
   
-  Setup.events.forEach(function ( name ) {
+  [ "play", "pause", "volumechange", "seeking", "seeked" ].forEach(function ( name ) {
     
     p.listen( name, function (event) {
     
@@ -297,8 +297,6 @@ test("Real", function () {
   
   p.pause();
   
-  p.mute(true);
-  
   p.play();
   
   p.volume(0.9);