unittests/tests/serializer.js
branchpopcorn-port
changeset 185 2ccec6201261
parent 83 1fb63a1a8ac3
equal deleted inserted replaced
184:a4be54204b71 185:2ccec6201261
     5   }});
     5   }});
     6   
     6   
     7   test("init the serializer with a DataLoader and an url", function() {
     7   test("init the serializer with a DataLoader and an url", function() {
     8       
     8       
     9       equal( this.ser._DataLoader, this.dt, "The dataloader reference is copied to the object." );
     9       equal( this.ser._DataLoader, this.dt, "The dataloader reference is copied to the object." );
    10       equal( this.ser._url, "http://google.com", "The url has been copied as well." );
    10       equal( this.ser._url, "http://google.com", "The url has been copied as well." );      
    11       equal( this.ser._data, undefined, "The serializer data is not defined." );
    11       deepEqual( this.ser._data, [], "The serializer data is not defined." );
    12   });
    12   });
    13   
    13   
    14   test("check that the serialize and deserialize abstract functions are defined", function() {
    14   test("check that the serialize and deserialize abstract functions are defined", function() {
    15       notEqual(this.ser.serialize, undefined, ".serialize is defined");
    15       notEqual(this.ser.serialize, undefined, ".serialize is defined");
    16       notEqual(this.ser.deserialize, undefined, ".deserialize is defined");
    16       notEqual(this.ser.deserialize, undefined, ".deserialize is defined");