tasks/jasmine-chromeapp/relay.js
function send() {
  'use strict';
  var req = new XMLHttpRequest(),
    specs = jsApiReporter.specs(),
    payload;

  if (specs.length) {
    specs.push(logs);
  }
  payload = JSON.stringify(specs);

  req.open('post', 'http://localhost:' + port + '/put', true);
  req.onload = function () {
    if (this.responseText === 'kill') {
      chrome.app.window.current().close();
    }
  };
  req.send(payload);
}
function send() {
  'use strict';
  var req = new XMLHttpRequest(),
    specs = jsApiReporter.specs(),
    payload;

  if (specs.length) {
    specs.push(logs);
  }
  payload = JSON.stringify(specs);

  req.open('post', 'http://localhost:' + port + '/put', true);
  req.onload = function () {
    if (this.responseText === 'kill') {
      chrome.app.window.current().close();
    }
  };
  req.send(payload);
}
function send ( ) { 'use strict' ; var req = new XMLHttpRequest ( ) , specs = jsApiReporter . specs ( ) , payload ; if ( specs . length ) { specs . push ( logs ) ; } payload = JSON . stringify ( specs ) ; req . open ( 'post' , 'http://localhost:' + port + '/put' , true ) ; req . onload = function ( ) { if ( this . responseText === 'kill' ) { chrome . app . window . current ( ) . close ( ) ; } } ; req . send ( payload ) ; }
This code sends the report.
This code sends the report .