Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: chrome/browser/ui/webui/options2/certificate_manager2_browsertest.js

Issue 10458069: Reland: Fix imported server certs being distrusted in NSS 3.13. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix the test failures Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 /** 5 /**
6 * TestFixture for certificate manager WebUI testing. 6 * TestFixture for certificate manager WebUI testing.
7 * @extends {testing.Test} 7 * @extends {testing.Test}
8 * @constructor 8 * @constructor
9 **/ 9 **/
10 function CertificateManagerWebUITest() {} 10 function CertificateManagerWebUITest() {}
11 11
12 CertificateManagerWebUITest.prototype = { 12 CertificateManagerWebUITest.prototype = {
13 __proto__: testing.Test.prototype, 13 __proto__: testing.Test.prototype,
14 14
15 /** 15 /**
16 * Browse to the certificate manager. 16 * Browse to the certificate manager.
17 **/ 17 **/
18 browsePreload: 'chrome://settings-frame/certificates', 18 browsePreload: 'chrome://settings-frame/certificates',
19 }; 19 };
20 20
21 // Mac and Windows go to native certificate manager. 21 // Mac and Windows go to native certificate manager, and certificate manager
22 GEN('#if defined(OS_MACOSX) || defined(OS_WIN)'); 22 // isn't implemented if OpenSSL is used.
23 GEN('#if !defined(USE_NSS)');
23 GEN('#define MAYBE_testOpenCertificateManager ' + 24 GEN('#define MAYBE_testOpenCertificateManager ' +
24 'DISABLED_testOpenCertificateManager'); 25 'DISABLED_testOpenCertificateManager');
25 GEN('#else'); 26 GEN('#else');
26 GEN('#define MAYBE_testOpenCertificateManager ' + 27 GEN('#define MAYBE_testOpenCertificateManager ' +
27 'testOpenCertificateManager'); 28 'testOpenCertificateManager');
28 GEN('#endif // defined(OS_MACOSX) || defined(OS_WIN)'); 29 GEN('#endif // !defined(USE_NSS)');
29 // Test opening the certificate manager has correct location. 30 // Test opening the certificate manager has correct location.
30 TEST_F('CertificateManagerWebUITest', 31 TEST_F('CertificateManagerWebUITest',
31 'MAYBE_testOpenCertificateManager', function() { 32 'MAYBE_testOpenCertificateManager', function() {
32 assertEquals(this.browsePreload, document.location.href); 33 assertEquals(this.browsePreload, document.location.href);
33 }); 34 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options2/options_bundle.js ('k') | chrome/browser/ui/webui/options2/certificate_manager_handler2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698