unittests/tests/mockSerializer.js
branchpopcorn-port
changeset 234 43b198dc932d
parent 233 126de77ee73e
child 235 33210f1cc4a0
--- a/unittests/tests/mockSerializer.js	Mon Nov 14 12:18:02 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-function test_mockSerializer() {
-  module("Mock Serializer basic tests");
-  
-  test("init the serializer with a DataLoader and an url", function() {
-      var dt = new IriSP.DataLoader();
-      var ser = new IriSP.MockSerializer(dt, "http://google.com");
-      equal( ser._DataLoader, dt, "The dataloader reference is copied to the object." );
-      equal( ser._url, "http://google.com", "The url has been copied as well." );
-      ok(ser._data, "the mock data is defined");
-  });
-  
-  test("check that the serialize and deserialize abstract functions are defined", function() {
-      var dt = new IriSP.DataLoader();
-      var ser = new IriSP.MockSerializer(dt);
-      notEqual(ser.serialize, undefined, ".serialize is defined");
-      notEqual(ser.deserialize, undefined, ".deserialize is defined");
-  });
-  
-  test("check that the callback is called", function() {
-      var dt = new IriSP.DataLoader();
-      var ser = new IriSP.MockSerializer(dt);
-      var spy = this.spy();
-      ser.sync(spy);
-      ok(spy.called, "the callback has been called");
-  });
-
-};
\ No newline at end of file