unittests/tests/widgets/sparklineWidget.js
branchnew-model
changeset 924 64c2eaafe5e2
parent 923 b3ee7d1b472a
child 925 28efc97b5d78
--- a/unittests/tests/widgets/sparklineWidget.js	Fri Jun 29 16:22:52 2012 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-/* sparklineWidget.js */
-
-function test_sparkline_widget() {
-  module("Sparkline widget testing", 
-  {setup : function() {    
-    this.Popcorn = Popcorn("#popcorn-div");
-    
-    this.dt = new IriSP.DataLoader();
-    this.ser = new IriSP.MockSerializer(this.dt, "/url"); /* dummy serializer */
-        
-    
-    this.config = {
-							width:650,
-							height:1,
-							mode:'radio',
-							container:'widget-div',
-							debug:true,
-							css:'../src/css/LdtPlayer.css'};
-    },
-  teardown: function() {
-    /* free the popcorn object because it has signal handlers attached to it */
-    this.Popcorn = Popcorn("#popcorn-div");
-  }
-  });
-  
-  test("test widget initialization", function() {  
-  
-    var widget = new IriSP.SparklineWidget(this.Popcorn, this.config, this.ser);    
-    widget.draw();
-
-    equal(widget.selector.children(".Ldt-SparklineWidget").length, 1, "test if the div has been added correctly");
-
-    /*
-    widget._Popcorn.currentTime(400);
-    widget._Popcorn.trigger("timeupdate");
-    equal(widget.selector.children(".Ldt-SparklineWidget").css("left"), "22%", "test if the widget responds correctly to messages.");
-  */
-  });
- };