unittests/tests/module.js
author hamidouk
Fri, 03 Feb 2012 17:07:42 +0100
branchpopcorn-port
changeset 778 8329f476d852
parent 461 a9c5eeca190c
permissions -rw-r--r--
clicking on the annotate button when the annotation creation widget is opened starts the creation of a new annotation.

/* 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");
  });
};