function painterTestBaseTime() {
  var testCase = {};
  testCase.tickOffset = '1337911098446';
  testCase.logCreationTime = 1338864774783;
  testCase.baseTimeTicks = '953675546';

  testCase.logEntries = [
    {
      'phase': EventPhase.PHASE_BEGIN,
      'source': {'id': 318, 'type': EventSourceType.URL_REQUEST},
      'time': '953675548',
      'type': EventType.REQUEST_ALIVE
    },
    {
      'phase': EventPhase.PHASE_BEGIN,
      'source': {'id': 318, 'type': EventSourceType.URL_REQUEST},
      'time': '953675698',
      'type': EventType.HTTP_STREAM_REQUEST
    },
    {
      'phase': EventPhase.PHASE_END,
      'source': {'id': 318, 'type': EventSourceType.URL_REQUEST},
      'time': '953675699',
      'type': EventType.HTTP_STREAM_REQUEST
    },
  ];

  testCase.expectedText = 't=  2 [st=  0] +REQUEST_ALIVE  [dt=789+]\n' +
      't=152 [st=150]    HTTP_STREAM_REQUEST  [dt=1]\n' +
      't=791 [st=789]';

  return testCase;
}
/**
 * Tests the formatting using a non-zero base time.  Also has no final event,
 * to make sure logCreationTime is handled correctly.
 */
Tests the formatting using a non-zero base time.  Also has no final event,
to make sure logCreationTime is handled correctly.
Tests the formatting using a non - zero base time . Also has no final event to make sure logCreationTime is handled correctly .
function painterTestBaseTime() {
  var testCase = {};
  testCase.tickOffset = '1337911098446';
  testCase.logCreationTime = 1338864774783;
  testCase.baseTimeTicks = '953675546';
  testCase.logEntries = [
    {
      'phase': EventPhase.PHASE_BEGIN,
      'source': {'id': 318, 'type': EventSourceType.URL_REQUEST},
      'time': '953675548',
      'type': EventType.REQUEST_ALIVE
    },
    {
      'phase': EventPhase.PHASE_BEGIN,
      'source': {'id': 318, 'type': EventSourceType.URL_REQUEST},
      'time': '953675698',
      'type': EventType.HTTP_STREAM_REQUEST
    },
    {
      'phase': EventPhase.PHASE_END,
      'source': {'id': 318, 'type': EventSourceType.URL_REQUEST},
      'time': '953675699',
      'type': EventType.HTTP_STREAM_REQUEST
    },
  ];
  testCase.expectedText = 't=  2 [st=  0] +REQUEST_ALIVE  [dt=789+]\n' +
      't=152 [st=150]    HTTP_STREAM_REQUEST  [dt=1]\n' +
      't=791 [st=789]';
  return testCase;
}
function painterTestBaseTime ( ) { var testCase = { } ; testCase . tickOffset = '1337911098446' ; testCase . logCreationTime = 1338864774783 ; testCase . baseTimeTicks = '953675546' ; testCase . logEntries = [ { 'phase' : EventPhase . PHASE_BEGIN , 'source' : { 'id' : 318 , 'type' : EventSourceType . URL_REQUEST } , 'time' : '953675548' , 'type' : EventType . REQUEST_ALIVE } , { 'phase' : EventPhase . PHASE_BEGIN , 'source' : { 'id' : 318 , 'type' : EventSourceType . URL_REQUEST } , 'time' : '953675698' , 'type' : EventType . HTTP_STREAM_REQUEST } , { 'phase' : EventPhase . PHASE_END , 'source' : { 'id' : 318 , 'type' : EventSourceType . URL_REQUEST } , 'time' : '953675699' , 'type' : EventType . HTTP_STREAM_REQUEST } , ] ; testCase . expectedText = 't=  2 [st=  0] +REQUEST_ALIVE  [dt=789+]\n' + 't=152 [st=150]    HTTP_STREAM_REQUEST  [dt=1]\n' + 't=791 [st=789]' ; return testCase ; }
Tests the formatting using a non-zero base time.
Tests the formatting using a non - zero base time .