| Index: chrome/test/data/webui/settings/privacy_page_test.js
|
| diff --git a/chrome/test/data/webui/settings/privacy_page_test.js b/chrome/test/data/webui/settings/privacy_page_test.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0d949a4ab4d5a31f2a7e87cc195739c7e7616d8c
|
| --- /dev/null
|
| +++ b/chrome/test/data/webui/settings/privacy_page_test.js
|
| @@ -0,0 +1,46 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +cr.define('settings_privacy_page', function() {
|
| + /**
|
| + * @constructor
|
| + * @extends {TestBrowserProxy}
|
| + * @implements {settings.PrivacyPageBrowserProxy}
|
| + */
|
| + function TestPrivacyPageBrowserProxy() {
|
| + settings.TestBrowserProxy.call(this, ['showManageSSLCertificates']);
|
| + }
|
| +
|
| + TestPrivacyPageBrowserProxy.prototype = {
|
| + __proto__: settings.TestBrowserProxy.prototype,
|
| +
|
| + /** @override */
|
| + showManageSSLCertificates: function() {
|
| + this.methodCalled('showManageSSLCertificates');
|
| + },
|
| + };
|
| +
|
| + suite('PrivacyPage', function() {
|
| + /** @type {settings.TestPrivacyPageBrowserProxy} */
|
| + var testBrowserProxy;
|
| +
|
| + /** @type {SettingsPrivacyPageElement} */
|
| + var page;
|
| +
|
| + setup(function() {
|
| + testBrowserProxy = new TestPrivacyPageBrowserProxy();
|
| + settings.PrivacyPageBrowserProxyImpl.instance_ = testBrowserProxy;
|
| + PolymerTest.clearBody();
|
| + page = document.createElement('settings-privacy-page');
|
| + document.body.appendChild(page);
|
| + });
|
| +
|
| + teardown(function() { page.remove(); });
|
| +
|
| + test('NativeCertificateManager', function() {
|
| + MockInteractions.tap(page.$.manageCertificates);
|
| + return testBrowserProxy.whenCalled('showManageSSLCertificates');
|
| + });
|
| + });
|
| +});
|
|
|