unittests/tests/playerWidget.js
branchpopcorn-port
changeset 163 3ecb643627de
parent 155 0ee6d3dd57d1
child 226 d1f0e604bd06
--- a/unittests/tests/playerWidget.js	Fri Oct 28 16:43:59 2011 +0200
+++ b/unittests/tests/playerWidget.js	Fri Oct 28 16:50:18 2011 +0200
@@ -28,7 +28,7 @@
     var player = new IriSP.PlayerWidget(this.Popcorn, this.config, this.ser);    
     player.draw();
     
-    equal(IriSP.jQuery("#widget-div #Ldt-Root").length, 1, "test if the div has been added correctly");     
+    equal(IriSP.jQuery("#widget-div").length, 1, "test if the div has been added correctly");     
   });
  
   test("test play button event handler", function() {
@@ -42,16 +42,6 @@
     
     player.draw();        
 
-    /*
-    Code seems to work but test doesn't. It must be a subtle race condition
-    between Popcorn, the youtube plugin and QUnit. Anyway, it works for pause
-    so WONTFIX
-    
-    IriSP.jQuery("#widget-div .Ldt-Control1 button:first").trigger("click");
-    ok(spy_callback.calledOnce, "test if play callback has been called");
-    
-    */
-    
     player.selector.find("#ldt-CtrlPlay").trigger("click");    
     player.selector.find("#ldt-CtrlPlay").trigger("click");
     ok(player.playHandler.calledTwice, "play handler called");