OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 * @fileoverview Tests for chrome://plugins | 6 * @fileoverview Tests for chrome://plugins |
7 */ | 7 */ |
8 | 8 |
9 /** @const {string} Path to source root. */ | 9 /** @const {string} Path to source root. */ |
10 var ROOT_PATH = '../../../../'; | 10 var ROOT_PATH = '../../../../'; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 var stub = connection.bindHandleToStub( | 106 var stub = connection.bindHandleToStub( |
107 handle, pluginsMojom.PluginsPageHandler); | 107 handle, pluginsMojom.PluginsPageHandler); |
108 this.browserProxy = new TestBrowserProxy(); | 108 this.browserProxy = new TestBrowserProxy(); |
109 bindings.StubBindings(stub).delegate = this.browserProxy; | 109 bindings.StubBindings(stub).delegate = this.browserProxy; |
110 }.bind(this)); | 110 }.bind(this)); |
111 }.bind(this)); | 111 }.bind(this)); |
112 }.bind(this); | 112 }.bind(this); |
113 }, | 113 }, |
114 }; | 114 }; |
115 | 115 |
116 TEST_F('PluginsTest', 'Plugins', function() { | 116 TEST_F('PluginsTest', 'DISABLED_Plugins', function() { |
117 var browserProxy = this.browserProxy; | 117 var browserProxy = this.browserProxy; |
118 | 118 |
119 var fakePluginData = { | 119 var fakePluginData = { |
120 name: 'Group Name', | 120 name: 'Group Name', |
121 description: 'description', | 121 description: 'description', |
122 version: 'version', | 122 version: 'version', |
123 update_url: 'http://update/', | 123 update_url: 'http://update/', |
124 critical: true, | 124 critical: true, |
125 enabled_mode: 'enabledByUser', | 125 enabled_mode: 'enabledByUser', |
126 id: 'plugin-name', | 126 id: 'plugin-name', |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 return browserProxy.whenCalled('saveShowDetailsToPrefs'); | 198 return browserProxy.whenCalled('saveShowDetailsToPrefs'); |
199 }).then(function(expanded) { | 199 }).then(function(expanded) { |
200 assertFalse(Boolean(expanded)); | 200 assertFalse(Boolean(expanded)); |
201 }); | 201 }); |
202 }); | 202 }); |
203 }); | 203 }); |
204 | 204 |
205 // Run all registered tests. | 205 // Run all registered tests. |
206 mocha.run(); | 206 mocha.run(); |
207 }); | 207 }); |
OLD | NEW |