OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Mac and Windows go to native certificate manager, and certificate manager | 5 // Mac and Windows go to native certificate manager, and certificate manager |
6 // isn't implemented if OpenSSL is used. | 6 // isn't implemented if OpenSSL is used. |
7 GEN('#if defined(USE_NSS)'); | 7 GEN('#if defined(USE_NSS_CERTS)'); |
8 | 8 |
9 /** | 9 /** |
10 * TestFixture for certificate manager WebUI testing. | 10 * TestFixture for certificate manager WebUI testing. |
11 * @extends {testing.Test} | 11 * @extends {testing.Test} |
12 * @constructor | 12 * @constructor |
13 */ | 13 */ |
14 function CertificateManagerWebUIBaseTest() {} | 14 function CertificateManagerWebUIBaseTest() {} |
15 | 15 |
16 CertificateManagerWebUIBaseTest.prototype = { | 16 CertificateManagerWebUIBaseTest.prototype = { |
17 __proto__: testing.Test.prototype, | 17 __proto__: testing.Test.prototype, |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // But the second should show the controlled setting badge, and the | 279 // But the second should show the controlled setting badge, and the |
280 // edit and delete buttons should be disabled. | 280 // edit and delete buttons should be disabled. |
281 var cert1 = certs[1]; | 281 var cert1 = certs[1]; |
282 expectEquals('ca_cert1', cert1.data.name); | 282 expectEquals('ca_cert1', cert1.data.name); |
283 expectNotEquals(null, cert1.querySelector('.cert-policy')); | 283 expectNotEquals(null, cert1.querySelector('.cert-policy')); |
284 cert1.click(); | 284 cert1.click(); |
285 expectTrue($('caCertsTab-edit').disabled); | 285 expectTrue($('caCertsTab-edit').disabled); |
286 expectTrue($('caCertsTab-delete').disabled); | 286 expectTrue($('caCertsTab-delete').disabled); |
287 }); | 287 }); |
288 | 288 |
289 GEN('#endif // defined(USE_NSS)'); | 289 GEN('#endif // defined(USE_NSS_CERTS)'); |
OLD | NEW |