function painterTestInProgressURLRequest() {
  var testCase = {};
  testCase.tickOffset = '1337911098446';
  testCase.loadFlags =
      LoadFlag.MAIN_FRAME_DEPRECATED | LoadFlag.MAYBE_USER_GESTURE;

  testCase.logEntries = [
    {
      'params': {
        'load_flags': testCase.loadFlags,
        'load_state': LoadState.READING_RESPONSE,
        'method': 'GET',
        'url': 'http://www.MagicPonyShopper.com'
      },
      'phase': EventPhase.PHASE_BEGIN,
      'source': {'id': 318, 'type': EventSourceType.URL_REQUEST},
      'time': '953675548',
      'type': EventType.REQUEST_ALIVE
    },
    {
      'phase': EventPhase.PHASE_END,
      'source': {'id': 318, 'type': EventSourceType.URL_REQUEST},
      'time': '953675699',
      'type': EventType.HTTP_STREAM_REQUEST
    },
    {
      'phase': EventPhase.PHASE_END,
      'source': {'id': 318, 'type': EventSourceType.URL_REQUEST},
      'time': '953675705',
      'type': EventType.URL_REQUEST_START_JOB
    },
    {
      'phase': EventPhase.PHASE_END,
      'source': {'id': 318, 'type': EventSourceType.URL_REQUEST},
      'time': '953675923',
      'type': EventType.REQUEST_ALIVE
    }
  ];

  testCase.expectedText =
      't=1338864773994 [st=  0] +REQUEST_ALIVE  [dt=375]\n' +
      '                          --> load_flags = ' +
      testCase.loadFlags.toString() +
      ' (MAIN_FRAME_DEPRECATED | MAYBE_USER_GESTURE)\n' +
      '                          --> load_state = ' +
      LoadState.READING_RESPONSE + ' (READING_RESPONSE)\n' +
      '                          --> method = "GET"\n' +
      '                          --> url = "http://www.MagicPonyShopper.com"\n' +
      't=1338864774145 [st=151]   -HTTP_STREAM_REQUEST\n' +
      't=1338864774151 [st=157]   -URL_REQUEST_START_JOB\n' +
      't=1338864774369 [st=375] -REQUEST_ALIVE';

  return testCase;
}
/**
 * Tests the formatting of a URL request that was just finishing up when
 * net-internals was opened.
 */
Tests the formatting of a URL request that was just finishing up when
net-internals was opened.
Tests the formatting of a URL request that was just finishing up when net - internals was opened .
function painterTestInProgressURLRequest() {
  var testCase = {};
  testCase.tickOffset = '1337911098446';
  testCase.loadFlags =
      LoadFlag.MAIN_FRAME_DEPRECATED | LoadFlag.MAYBE_USER_GESTURE;
  testCase.logEntries = [
    {
      'params': {
        'load_flags': testCase.loadFlags,
        'load_state': LoadState.READING_RESPONSE,
        'method': 'GET',
        'url': 'http://www.MagicPonyShopper.com'
      },
      'phase': EventPhase.PHASE_BEGIN,
      'source': {'id': 318, 'type': EventSourceType.URL_REQUEST},
      'time': '953675548',
      'type': EventType.REQUEST_ALIVE
    },
    {
      'phase': EventPhase.PHASE_END,
      'source': {'id': 318, 'type': EventSourceType.URL_REQUEST},
      'time': '953675699',
      'type': EventType.HTTP_STREAM_REQUEST
    },
    {
      'phase': EventPhase.PHASE_END,
      'source': {'id': 318, 'type': EventSourceType.URL_REQUEST},
      'time': '953675705',
      'type': EventType.URL_REQUEST_START_JOB
    },
    {
      'phase': EventPhase.PHASE_END,
      'source': {'id': 318, 'type': EventSourceType.URL_REQUEST},
      'time': '953675923',
      'type': EventType.REQUEST_ALIVE
    }
  ];
  testCase.expectedText =
      't=1338864773994 [st=  0] +REQUEST_ALIVE  [dt=375]\n' +
      '                          --> load_flags = ' +
      testCase.loadFlags.toString() +
      ' (MAIN_FRAME_DEPRECATED | MAYBE_USER_GESTURE)\n' +
      '                          --> load_state = ' +
      LoadState.READING_RESPONSE + ' (READING_RESPONSE)\n' +
      '                          --> method = "GET"\n' +
      '                          --> url = "http://www.MagicPonyShopper.com"\n' +
      't=1338864774145 [st=151]   -HTTP_STREAM_REQUEST\n' +
      't=1338864774151 [st=157]   -URL_REQUEST_START_JOB\n' +
      't=1338864774369 [st=375] -REQUEST_ALIVE';
  return testCase;
}
function painterTestInProgressURLRequest ( ) { var testCase = { } ; testCase . tickOffset = '1337911098446' ; testCase . loadFlags = LoadFlag . MAIN_FRAME_DEPRECATED | LoadFlag . MAYBE_USER_GESTURE ; testCase . logEntries = [ { 'params' : { 'load_flags' : testCase . loadFlags , 'load_state' : LoadState . READING_RESPONSE , 'method' : 'GET' , 'url' : 'http://www.MagicPonyShopper.com' } , 'phase' : EventPhase . PHASE_BEGIN , 'source' : { 'id' : 318 , 'type' : EventSourceType . URL_REQUEST } , 'time' : '953675548' , 'type' : EventType . REQUEST_ALIVE } , { 'phase' : EventPhase . PHASE_END , 'source' : { 'id' : 318 , 'type' : EventSourceType . URL_REQUEST } , 'time' : '953675699' , 'type' : EventType . HTTP_STREAM_REQUEST } , { 'phase' : EventPhase . PHASE_END , 'source' : { 'id' : 318 , 'type' : EventSourceType . URL_REQUEST } , 'time' : '953675705' , 'type' : EventType . URL_REQUEST_START_JOB } , { 'phase' : EventPhase . PHASE_END , 'source' : { 'id' : 318 , 'type' : EventSourceType . URL_REQUEST } , 'time' : '953675923' , 'type' : EventType . REQUEST_ALIVE } ] ; testCase . expectedText = 't=1338864773994 [st=  0] +REQUEST_ALIVE  [dt=375]\n' + '                          --> load_flags = ' + testCase . loadFlags . toString ( ) + ' (MAIN_FRAME_DEPRECATED | MAYBE_USER_GESTURE)\n' + '                          --> load_state = ' + LoadState . READING_RESPONSE + ' (READING_RESPONSE)\n' + '                          --> method = "GET"\n' + '                          --> url = "http://www.MagicPonyShopper.com"\n' + 't=1338864774145 [st=151]   -HTTP_STREAM_REQUEST\n' + 't=1338864774151 [st=157]   -URL_REQUEST_START_JOB\n' + 't=1338864774369 [st=375] -REQUEST_ALIVE' ; return testCase ; }
Tests the formatting of a URL request that was just finishing up when
 net-internals was opened.
Tests the formatting of a URL request that was just finishing up when net - internals was opened .