unittests/tests/widget.js
changeset 944 8a6c9e3d0158
parent 907 27b248a13355
parent 943 a882cc0c936f
child 945 7d9f6fd6f904
--- a/unittests/tests/widget.js	Thu May 24 15:05:47 2012 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-/* test module for base widgets */
-function test_widget() {
-  module("Base widget testing", 
-  {setup : function() {
-    this.Popcorn = Popcorn("#popcorn-div");
-    
-    this.dt = new IriSP.DataLoader();
-    this.ser = new IriSP.JSONSerializer(this.dt, "/url");
-  } }
-  );
-  
-  test("test initialisation", function() {
-    var config = { container: "mydiv", width: 640, height: 480};
-    var wid = new IriSP.Widget(this.Popcorn, config, this.ser);
-    deepEqual(wid._config, config, "Check if the parent div is set correctly");
-    ok(wid.selector, "Check if the jquery selector is set");
-    
-  });
-  
-  test("test initialisation with more values", function() {
-    var config = { container: "mydiv", widthmax: 640, heightmax: 480};
-    var wid = new IriSP.Widget(this.Popcorn, config, this.ser);
-    deepEqual(wid._config, config, "Check if the parent div is set correctly");
-    ok(wid.selector, "Check if the jquery selector is set");
-    
-  });
-  
-  
-};