function painterTestMissingCustomParameter() {
  var testCase = {};
  testCase.tickOffset = '1337911098446';

  testCase.logEntries = [
    {
      'params': {
        // The expectation is for this to be called "headers".
        'headersWRONG': ['Host: www.google.com', 'Connection: keep-alive'],
        'line': 'GET / HTTP/1.1\r\n'
      },
      'phase': EventPhase.PHASE_NONE,
      'source': {'id': 146, 'type': EventSourceType.URL_REQUEST},
      'time': '953534910',
      'type': EventType.HTTP_TRANSACTION_SEND_REQUEST_HEADERS
    },
  ];

  testCase.expectedText =
      't=1338864633356 [st=0]  HTTP_TRANSACTION_SEND_REQUEST_HEADERS\n' +
      '                        --> headersWRONG = ["Host: www.google.com",' +
      '"Connection: keep-alive"]\n' +
      '                        --> line = "GET / HTTP/1.1\\r\\n"';

  return testCase;
}
/**
 * Tests that when the custom parameters for an event type don't match
 * what we expect, we fall back to default formatting.
 */
Tests that when the custom parameters for an event type don't match
what we expect, we fall back to default formatting.
Tests that when the custom parameters for an event type don ' t match what we expect we fall back to default formatting .
function painterTestMissingCustomParameter() {
  var testCase = {};
  testCase.tickOffset = '1337911098446';
  testCase.logEntries = [
    {
      'params': {
        'headersWRONG': ['Host: www.google.com', 'Connection: keep-alive'],
        'line': 'GET / HTTP/1.1\r\n'
      },
      'phase': EventPhase.PHASE_NONE,
      'source': {'id': 146, 'type': EventSourceType.URL_REQUEST},
      'time': '953534910',
      'type': EventType.HTTP_TRANSACTION_SEND_REQUEST_HEADERS
    },
  ];
  testCase.expectedText =
      't=1338864633356 [st=0]  HTTP_TRANSACTION_SEND_REQUEST_HEADERS\n' +
      '                        --> headersWRONG = ["Host: www.google.com",' +
      '"Connection: keep-alive"]\n' +
      '                        --> line = "GET / HTTP/1.1\\r\\n"';
  return testCase;
}
function painterTestMissingCustomParameter ( ) { var testCase = { } ; testCase . tickOffset = '1337911098446' ; testCase . logEntries = [ { 'params' : { 'headersWRONG' : [ 'Host: www.google.com' , 'Connection: keep-alive' ] , 'line' : 'GET / HTTP/1.1\r\n' } , 'phase' : EventPhase . PHASE_NONE , 'source' : { 'id' : 146 , 'type' : EventSourceType . URL_REQUEST } , 'time' : '953534910' , 'type' : EventType . HTTP_TRANSACTION_SEND_REQUEST_HEADERS } , ] ; testCase . expectedText = 't=1338864633356 [st=0]  HTTP_TRANSACTION_SEND_REQUEST_HEADERS\n' + '                        --> headersWRONG = ["Host: www.google.com",' + '"Connection: keep-alive"]\n' + '                        --> line = "GET / HTTP/1.1\\r\\n"' ; return testCase ; }
Tests that when the custom parameters for an event type don't match
 what we expect, we fall back to default formatting.
Tests that when the custom parameters for an event type don ' t match what we expect we fall back to default formatting .
// The expectation is for this to be called "headers".