| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 /** | |
| 6 * TestFixture for certificate manager WebUI testing. | |
| 7 * @extends {testing.Test} | |
| 8 * @constructor | |
| 9 **/ | |
| 10 function CertificateManagerWebUITest() {} | |
| 11 | |
| 12 CertificateManagerWebUITest.prototype = { | |
| 13 __proto__: testing.Test.prototype, | |
| 14 | |
| 15 /** | |
| 16 * Browse to the certificate manager. | |
| 17 **/ | |
| 18 browsePreload: 'chrome://settings-frame/certificates', | |
| 19 }; | |
| 20 | |
| 21 // Mac and Windows go to native certificate manager, and certificate manager | |
| 22 // isn't implemented if OpenSSL is used. | |
| 23 GEN('#if !defined(USE_NSS)'); | |
| 24 GEN('#define MAYBE_testOpenCertificateManager ' + | |
| 25 'DISABLED_testOpenCertificateManager'); | |
| 26 GEN('#else'); | |
| 27 GEN('#define MAYBE_testOpenCertificateManager ' + | |
| 28 'testOpenCertificateManager'); | |
| 29 GEN('#endif // !defined(USE_NSS)'); | |
| 30 // Test opening the certificate manager has correct location. | |
| 31 TEST_F('CertificateManagerWebUITest', | |
| 32 'MAYBE_testOpenCertificateManager', function() { | |
| 33 assertEquals(this.browsePreload, document.location.href); | |
| 34 }); | |
| OLD | NEW |