| Index: chrome/test/data/webui/net_internals/log_view_painter.js
|
| diff --git a/chrome/test/data/webui/net_internals/log_view_painter.js b/chrome/test/data/webui/net_internals/log_view_painter.js
|
| index d59d78a98ccdef679f13372638e697693f15f469..5e48fe47906b3786ec40bc3796fcaf45d13fb359 100644
|
| --- a/chrome/test/data/webui/net_internals/log_view_painter.js
|
| +++ b/chrome/test/data/webui/net_internals/log_view_painter.js
|
| @@ -190,6 +190,7 @@ TEST_F('NetInternalsTest', 'netInternalsLogViewPainterPrintAsText', function() {
|
| runTestCase(painterTestHexEncodedBytes());
|
| runTestCase(painterTestCertVerifierJob());
|
| runTestCase(painterTestCertVerifyResult());
|
| + runTestCase(painterTestCheckedCert());
|
| runTestCase(painterTestProxyConfigOneProxyAllSchemes());
|
| runTestCase(painterTestProxyConfigTwoProxiesAllSchemes());
|
| runTestCase(painterTestDontStripCookiesURLRequest());
|
| @@ -1587,6 +1588,47 @@ function painterTestCertVerifyResult() {
|
| }
|
|
|
| /**
|
| + * Tests the formatting of checked certificates
|
| + */
|
| +function painterTestCheckedCert() {
|
| + var testCase = {};
|
| + testCase.tickOffset = '1337911098481';
|
| +
|
| + testCase.logEntries = [
|
| + {
|
| + 'params': {
|
| + 'certificate': {
|
| + 'certificates': [
|
| + '-----BEGIN CERTIFICATE-----\n1\n-----END CERTIFICATE-----\n',
|
| + '-----BEGIN CERTIFICATE-----\n2\n-----END CERTIFICATE-----\n'
|
| + ]
|
| + }
|
| + },
|
| + 'phase': EventPhase.PHASE_NONE,
|
| + 'source': {
|
| + 'id': 752,
|
| + 'type': EventSourceType.SOCKET
|
| + },
|
| + 'time': '954124697',
|
| + 'type': EventType.CERT_CT_COMPLIANCE_CHECKED
|
| + }
|
| + ];
|
| +
|
| + testCase.expectedText =
|
| + 't=1338865223178 [st=0] CERT_CT_COMPLIANCE_CHECKED\n' +
|
| + ' --> certificate =\n' +
|
| + ' -----BEGIN CERTIFICATE-----\n' +
|
| + ' 1\n' +
|
| + ' -----END CERTIFICATE-----\n' +
|
| + ' \n' +
|
| + ' -----BEGIN CERTIFICATE-----\n' +
|
| + ' 2\n' +
|
| + ' -----END CERTIFICATE-----';
|
| +
|
| + return testCase;
|
| +}
|
| +
|
| +/**
|
| * Tests the formatting of proxy configurations when using one proxy server for
|
| * all URL schemes.
|
| */
|
|
|