unittests/tests/module.js
author cavaliet
Thu, 19 Apr 2012 15:47:34 +0200
changeset 871 a5607fa1ef0b
parent 461 a9c5eeca190c
permissions -rw-r--r--
Enhance SlideShare widget for it to point the a specified div (like annotationListWidget).

/* test module for base widgets */
function test_module() {
  module("Base module 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 = { a : 540};
    var mod = new IriSP.Module(this.Popcorn, config, this.ser);
    deepEqual(mod._config, config, "Check that config is copied correctly");
  });
};