| 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_CERTS)'); | 7 GEN('#if defined(USE_NSS_CERTS)'); |
| 8 | 8 |
| 9 GEN_INCLUDE(['options_browsertest_base.js']); | 9 GEN_INCLUDE(['options_browsertest_base.js']); |
| 10 | 10 |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 CertificateManagerStandaloneWebUITest.prototype = { | 379 CertificateManagerStandaloneWebUITest.prototype = { |
| 380 __proto__: CertificateManagerWebUITest.prototype, | 380 __proto__: CertificateManagerWebUITest.prototype, |
| 381 | 381 |
| 382 /** | 382 /** |
| 383 * Browse to the certificate manager page. | 383 * Browse to the certificate manager page. |
| 384 */ | 384 */ |
| 385 browsePreload: CERTIFICATE_MANAGER_STANDALONE_PAGE_URL, | 385 browsePreload: CERTIFICATE_MANAGER_STANDALONE_PAGE_URL, |
| 386 }; | 386 }; |
| 387 | 387 |
| 388 // Ensure that the standalone certificate manager page loads and displays the | 388 // Ensure that the standalone certificate manager page loads and displays the |
| 389 // ceertificates correctly. | 389 // certificates correctly. |
| 390 TEST_F('CertificateManagerStandaloneWebUITest', 'testCertsDisplaying', | 390 TEST_F('CertificateManagerStandaloneWebUITest', 'testCertsDisplaying', |
| 391 function() { | 391 function() { |
| 392 assertEquals(this.browsePreload, document.location.href); | 392 assertEquals(this.browsePreload, document.location.href); |
| 393 | 393 |
| 394 // Click on the first folder and get the certificates. | 394 // Click on the first folder and get the certificates. |
| 395 var caCertsTab = $('caCertsTab'); | 395 var personalCertsTab = $('personalCertsTab'); |
| 396 caCertsTab.querySelector('div.tree-item').click(); | 396 personalCertsTab.querySelector('div.tree-item').click(); |
| 397 var certs = caCertsTab.querySelectorAll('div.tree-item div.tree-item'); | 397 var certs = personalCertsTab.querySelectorAll('div.tree-item div.tree-item'); |
| 398 | 398 |
| 399 // There should be exactly three certificates displayed. | 399 // There should be exactly one certificate displayed. |
| 400 expectEquals(certs.length, 3); | 400 expectEquals(certs.length, 1); |
| 401 |
| 402 // No "Servers" and "Authorities" tab. See http://crbug.com/719907. |
| 403 expectTrue($('server-certs-nav-tab').hidden); |
| 404 expectTrue($('ca-certs-nav-tab').hidden); |
| 401 }); | 405 }); |
| 402 | 406 |
| 403 GEN('#endif // defined(OS_CHROMEOS)'); | 407 GEN('#endif // defined(OS_CHROMEOS)'); |
| 404 | 408 |
| 405 GEN('#endif // defined(USE_NSS_CERTS)'); | 409 GEN('#endif // defined(USE_NSS_CERTS)'); |
| OLD | NEW |