index.js
function (data) {
    if (! data.success) {
      //var timestamp = Math.round(new Date().getTime() / 1000);
      this.xml[0].children[this.testIdx].children[this.testCount].children.push({
        name: 'failure',
        attrs: {
          name: data.type,
          message:  (data.message ? data.message : 'Expected: ' + data.expected + 'Actual: ' + data.value)
        }
      });

      //if (this.variationCount > -1 && this.xml[0].children[this.testIdx].children[this.testCount].children[this.variationCount]) {
        //this.xml[0].children[this.testIdx].children[this.testCount].children[this.variationCount].attrs.end = timestamp;
      //}

      this.variationCount++;
    }

    return this;
  }
function (data) {
    if (! data.success) {
      //var timestamp = Math.round(new Date().getTime() / 1000);
      this.xml[0].children[this.testIdx].children[this.testCount].children.push({
        name: 'failure',
        attrs: {
          name: data.type,
          message:  (data.message ? data.message : 'Expected: ' + data.expected + 'Actual: ' + data.value)
        }
      });

      //if (this.variationCount > -1 && this.xml[0].children[this.testIdx].children[this.testCount].children[this.variationCount]) {
        //this.xml[0].children[this.testIdx].children[this.testCount].children[this.variationCount].attrs.end = timestamp;
      //}

      this.variationCount++;
    }

    return this;
  }
function ( data ) { if ( ! data . success ) { //var timestamp = Math.round(new Date().getTime() / 1000); this . xml [ 0 ] . children [ this . testIdx ] . children [ this . testCount ] . children . push ( { name : 'failure' , attrs : { name : data . type , message : ( data . message ? data . message : 'Expected: ' + data . expected + 'Actual: ' + data . value ) } } ) ; //if (this.variationCount > -1 && this.xml[0].children[this.testIdx].children[this.testCount].children[this.variationCount]) { //this.xml[0].children[this.testIdx].children[this.testCount].children[this.variationCount].attrs.end = timestamp; //} this . variationCount ++ ; } return this ; }
Generates XML skeleton for an assertion

@method assertion
@param {object} data Event data
@chainable
Generates XML skeleton for an assertion