function painterTestCertVerifierJob() {
  var testCase = {};
  testCase.tickOffset = '1337911098481';

  testCase.logEntries = [
    {
      'params': {
        'certificates': [
          '-----BEGIN CERTIFICATE-----\n1\n-----END CERTIFICATE-----\n',
          '-----BEGIN CERTIFICATE-----\n2\n-----END CERTIFICATE-----\n',
        ]
      },
      'phase': EventPhase.PHASE_BEGIN,
      'source': {'id': 752, 'type': EventSourceType.CERT_VERIFIER_JOB},
      'time': '954124663',
      'type': EventType.CERT_VERIFIER_JOB
    },
    {
      'phase': EventPhase.PHASE_END,
      'source': {'id': 752, 'type': EventSourceType.CERT_VERIFIER_JOB},
      'time': '954124697',
      'type': EventType.CERT_VERIFIER_JOB
    }
  ];

  testCase.expectedText =
      't=1338865223144 [st=0]  CERT_VERIFIER_JOB  [dt=34]\n' +
      '                        --> certificates =\n' +
      '                               -----BEGIN CERTIFICATE-----\n' +
      '                               1\n' +
      '                               -----END CERTIFICATE-----\n' +
      '                               \n' +
      '                               -----BEGIN CERTIFICATE-----\n' +
      '                               2\n' +
      '                               -----END CERTIFICATE-----';
  return testCase;
}
/**
 * Tests the formatting of certificates.
 */
Tests the formatting of certificates.
Tests the formatting of certificates .
function painterTestCertVerifierJob() {
  var testCase = {};
  testCase.tickOffset = '1337911098481';
  testCase.logEntries = [
    {
      'params': {
        'certificates': [
          '-----BEGIN CERTIFICATE-----\n1\n-----END CERTIFICATE-----\n',
          '-----BEGIN CERTIFICATE-----\n2\n-----END CERTIFICATE-----\n',
        ]
      },
      'phase': EventPhase.PHASE_BEGIN,
      'source': {'id': 752, 'type': EventSourceType.CERT_VERIFIER_JOB},
      'time': '954124663',
      'type': EventType.CERT_VERIFIER_JOB
    },
    {
      'phase': EventPhase.PHASE_END,
      'source': {'id': 752, 'type': EventSourceType.CERT_VERIFIER_JOB},
      'time': '954124697',
      'type': EventType.CERT_VERIFIER_JOB
    }
  ];
  testCase.expectedText =
      't=1338865223144 [st=0]  CERT_VERIFIER_JOB  [dt=34]\n' +
      '                        --> certificates =\n' +
      '                               -----BEGIN CERTIFICATE-----\n' +
      '                               1\n' +
      '                               -----END CERTIFICATE-----\n' +
      '                               \n' +
      '                               -----BEGIN CERTIFICATE-----\n' +
      '                               2\n' +
      '                               -----END CERTIFICATE-----';
  return testCase;
}
function painterTestCertVerifierJob ( ) { var testCase = { } ; testCase . tickOffset = '1337911098481' ; testCase . logEntries = [ { 'params' : { 'certificates' : [ '-----BEGIN CERTIFICATE-----\n1\n-----END CERTIFICATE-----\n' , '-----BEGIN CERTIFICATE-----\n2\n-----END CERTIFICATE-----\n' , ] } , 'phase' : EventPhase . PHASE_BEGIN , 'source' : { 'id' : 752 , 'type' : EventSourceType . CERT_VERIFIER_JOB } , 'time' : '954124663' , 'type' : EventType . CERT_VERIFIER_JOB } , { 'phase' : EventPhase . PHASE_END , 'source' : { 'id' : 752 , 'type' : EventSourceType . CERT_VERIFIER_JOB } , 'time' : '954124697' , 'type' : EventType . CERT_VERIFIER_JOB } ] ; testCase . expectedText = 't=1338865223144 [st=0]  CERT_VERIFIER_JOB  [dt=34]\n' + '                        --> certificates =\n' + '                               -----BEGIN CERTIFICATE-----\n' + '                               1\n' + '                               -----END CERTIFICATE-----\n' + '                               \n' + '                               -----BEGIN CERTIFICATE-----\n' + '                               2\n' + '                               -----END CERTIFICATE-----' ; return testCase ; }
Tests the formatting of certificates.
Tests the formatting of certificates .